summaryrefslogtreecommitdiffstats
path: root/source3/web
diff options
context:
space:
mode:
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/cgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index 86366d1083..41d099bac9 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -411,7 +411,7 @@ void cgi_setup(char *rootdir, int auth_required)
char *x;
/* Save the users name if available */
- if (x = getenv("REMOTE_USER")) {
+ if ((x = getenv("REMOTE_USER"))!=NULL) {
C_user = strdup(x);
} else {
C_user = "";