]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
command.c: Silence clang warning.
authorAndre Noll <maan@systemlinux.org>
Fri, 27 Dec 2013 23:54:42 +0000 (23:54 +0000)
committerAndre Noll <maan@systemlinux.org>
Fri, 27 Dec 2013 23:54:42 +0000 (23:54 +0000)
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

index 3d40023f119efc91f446011ae89381790567547f..8c746652999ee2f899ed9272eace3f279b313c19 100644 (file)
--- 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);
 }