projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
994e720
)
command.c: Silence clang warning.
author
Andre Noll
<maan@systemlinux.org>
Fri, 27 Dec 2013 23:54:42 +0000
(23:54 +0000)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/command.c
b/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);
}