Commit a8bc7438 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Standards compliance: fputs(3) returns non-negative on success.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1314 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 08be3aa4
......@@ -144,7 +144,7 @@ mgt_CallCc(const char *source, struct vsb *sb)
fs = fdopen(sfd, "r+");
assert(fs != NULL);
if (fputs(source, fs) || fflush(fs)) {
if (fputs(source, fs) < 0 || fflush(fs)) {
vsb_printf(sb,
"Write error to C source file: %s\n",
strerror(errno));
......
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