From 1b9e28744f6b613e878a1875e93a4b7d81a4764e Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 27 Dec 2013 23:54:42 +0000 Subject: [PATCH] command.c: Silence clang warning. command.c:562:32: warning: Null pointer passed as an argument to a 'nonnull' parameter return send_sb(&cc->scc, msg, strlen(msg), SBD_OUTPUT, false); Harmless, the newly added assert() makes scan-build STFU. --- command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/command.c b/command.c index 3d40023f..8c746652 100644 --- a/command.c +++ b/command.c @@ -554,6 +554,7 @@ static int send_list_of_commands(struct command_context *cc, struct server_comma msg = para_strcat(msg, tmp); free(tmp); } + assert(msg); return send_sb(&cc->scc, msg, strlen(msg), SBD_OUTPUT, false); } -- 2.39.2