shell: allocate enough memory for shsurf->ping_timer
This commit is contained in:
committed by
Kristian Høgsberg
parent
a8479f1e3a
commit
fb9808993b
+1
-1
@@ -447,7 +447,7 @@ ping_handler(struct weston_surface *surface, uint32_t serial)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (!shsurf->ping_timer) {
|
if (!shsurf->ping_timer) {
|
||||||
shsurf->ping_timer = malloc(sizeof shsurf->ping_timer);
|
shsurf->ping_timer = malloc(sizeof *shsurf->ping_timer);
|
||||||
if (!shsurf->ping_timer)
|
if (!shsurf->ping_timer)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user