Re: [PATCH] Print NULL strings as "nil" in wl_closure_print

2019-01-30 Thread Pekka Paalanen
On Tue, 29 Jan 2019 22:00:40 + Simon Ser wrote: > Calling printf("%s", NULL) is undefined behaviour. > > Signed-off-by: Simon Ser > --- > src/connection.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/src/connection.c b/src/connection.c > index f965210..474c

[PATCH] Print NULL strings as "nil" in wl_closure_print

2019-01-29 Thread Simon Ser
Calling printf("%s", NULL) is undefined behaviour. Signed-off-by: Simon Ser --- src/connection.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/connection.c b/src/connection.c index f965210..474c97b 100644 --- a/src/connection.c +++ b/src/connection.c @@ -1278,7 +127