Commit 6afb1521 authored by Simon Ser's avatar Simon Ser Committed by Pekka Paalanen

Print NULL strings as "nil" in wl_closure_print

Calling printf("%s", NULL) is undefined behaviour.
Signed-off-by: Simon Ser's avatarSimon Ser <>
Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <>
parent d3251402
......@@ -1278,7 +1278,10 @@ wl_closure_print(struct wl_closure *closure, struct wl_object *target, int send)
case 's':
if (closure->args[i].s)
fprintf(stderr, "\"%s\"", closure->args[i].s);
fprintf(stderr, "nil");
case 'o':
if (closure->args[i].o)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment