From 89e049ad7f710bdf7fb884e396e3331d0c8afe0d Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 23 Nov 2011 13:14:35 -0800 Subject: [PATCH] Another asprintf() return-value-check tweak. --- clientserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientserver.c b/clientserver.c index d63aa964..2294bb00 100644 --- a/clientserver.c +++ b/clientserver.c @@ -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); -- 2.47.2