summaryrefslogtreecommitdiff
path: root/server/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/main.c')
-rw-r--r--server/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/main.c b/server/main.c
index ffafdd5..c9ac3d8 100644
--- a/server/main.c
+++ b/server/main.c
@@ -163,7 +163,7 @@ main(argc, argv)
extern int optind;
/* set name */
- if (programname = rindex(argv[0],'/'))
+ if ((programname = rindex(argv[0],'/')) != NULL)
programname++;
else programname = argv[0];