summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2012-04-27 13:55:55 +0300
committerKristian Høgsberg <krh@bitplanet.net>2012-04-27 15:06:18 -0400
commitfb9808993ba9d078ca17445a738ceebb7f6db736 (patch)
tree61d0b0bb1abba3e4d33070a0cdc10e24a6d20c50 /src
parenta8479f1e3a45cebf7468b0d4c502da5c82c4fb45 (diff)
shell: allocate enough memory for shsurf->ping_timer
Diffstat (limited to 'src')
-rw-r--r--src/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.c b/src/shell.c
index 9c844b5..2001133 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -447,7 +447,7 @@ ping_handler(struct weston_surface *surface, uint32_t serial)
return;
if (!shsurf->ping_timer) {
- shsurf->ping_timer = malloc(sizeof shsurf->ping_timer);
+ shsurf->ping_timer = malloc(sizeof *shsurf->ping_timer);
if (!shsurf->ping_timer)
return;