Skip to content
This repository was archived by the owner on Oct 10, 2019. It is now read-only.

Commit 379da31

Browse files
committed
limit_proxy() is not guaranteed to set errmsg. Initialize the variable to NULL.
1 parent 5fa75e4 commit 379da31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ cmd_submit_job(void *args)
11591159
else if ((proxyname) != NULL && (!disable_limited_proxy))
11601160
{
11611161
/* not in glexec mode: need to limit the proxy */
1162-
char *errmsg;
1162+
char *errmsg = NULL;
11631163
if((proxynameNew = limit_proxy(proxyname, NULL, &errmsg)) == NULL)
11641164
{
11651165
/* PUSH A FAILURE */

0 commit comments

Comments
 (0)