change strtok(0.. to strtok(NULL..
authorMarc G. Fournier
Thu, 20 Mar 1997 18:31:49 +0000 (18:31 +0000)
committerMarc G. Fournier
Thu, 20 Mar 1997 18:31:49 +0000 (18:31 +0000)
From: Keith Parks 

src/backend/libpq/password.c

index c7bcb04024cec76626b2d22958c333ef52f85411..65f8308010ddcaf6e5f6c1733c71f1959465842a 100644 (file)
@@ -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;