summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-03-20 18:31:49 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-03-20 18:31:49 +0000
commit69c2c66196b199619f388d27b4b3e53feeb1f6a6 (patch)
treec37d1b92ed2fea11dcf22fd90335291efbb2553d /src
parentbf872f0aff435cce475279d56f8f981f3044ba77 (diff)
change strtok(0.. to strtok(NULL..
From: Keith Parks <emkxp01@mtcc.demon.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/backend/libpq/password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/libpq/password.c b/src/backend/libpq/password.c
index c7bcb04024c..65f8308010d 100644
--- a/src/backend/libpq/password.c
+++ b/src/backend/libpq/password.c
@@ -71,7 +71,7 @@ verify_password(char *user, char *password, Port *port,
p = pw_file_line;
test_user = strtok(p, ":");
- test_pw = strtok(0, ":");
+ test_pw = strtok(NULL, ":");
if(!test_user || !test_pw ||
test_user[0] == '\0' || test_pw[0] == '\0') {
continue;