diff options
author | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2012-04-27 13:55:55 +0300 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-04-27 15:06:18 -0400 |
commit | fb9808993ba9d078ca17445a738ceebb7f6db736 (patch) | |
tree | 61d0b0bb1abba3e4d33070a0cdc10e24a6d20c50 /src | |
parent | a8479f1e3a45cebf7468b0d4c502da5c82c4fb45 (diff) |
shell: allocate enough memory for shsurf->ping_timer
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c | 2 |
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; |