summaryrefslogtreecommitdiff
path: root/pmdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'pmdb.c')
-rw-r--r--pmdb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pmdb.c b/pmdb.c
index c282523..2f046cc 100644
--- a/pmdb.c
+++ b/pmdb.c
@@ -570,6 +570,8 @@ PushRequestorQueue (
newreq->authName = (char *) malloc (strlen (authName) + 1);
newreq->authData = (char *) malloc (authLen);
}
+ else
+ newreq->authName = newreq->authData = NULL;
if (!newreq->serviceName ||
!newreq->serverAddress ||
@@ -602,10 +604,6 @@ PushRequestorQueue (
strcpy (newreq->authName, authName);
memcpy (newreq->authData, authData, authLen);
}
- else
- {
- newreq->authName = newreq->authData = NULL;
- }
newreq->requestor = requestor;
newreq->listData = (char *) runList;