]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Another asprintf() return-value-check tweak.
authorWayne Davison <wayned@samba.org>
Wed, 23 Nov 2011 21:14:35 +0000 (13:14 -0800)
committerWayne Davison <wayned@samba.org>
Wed, 23 Nov 2011 21:14:35 +0000 (13:14 -0800)
clientserver.c

index d63aa9641e3faab75fc68d9549e162d685c5bc39..2294bb005a6039fa75ebd7e26843c603912580c5 100644 (file)
@@ -759,7 +759,7 @@ static int rsync_module(int f_in, int f_out, int i, const char *addr, const char
                                                        break;
                                                _exit(1);
                                        }
-                                       if (asprintf(&p, "RSYNC_ARG%d=%s", j, buf) > 0)
+                                       if (asprintf(&p, "RSYNC_ARG%d=%s", j, buf) >= 0)
                                                putenv(p);
                                }
                                close(pre_exec_arg_fd);