1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-08 06:02:22 +03:00

change strtok(0.. to strtok(NULL..

From: Keith Parks <emkxp01@mtcc.demon.co.uk>
This commit is contained in:
Marc G. Fournier
1997-03-20 18:31:49 +00:00
parent bf872f0aff
commit 69c2c66196

View File

@@ -71,7 +71,7 @@ verify_password(char *user, char *password, Port *port,
p = pw_file_line; p = pw_file_line;
test_user = strtok(p, ":"); test_user = strtok(p, ":");
test_pw = strtok(0, ":"); test_pw = strtok(NULL, ":");
if(!test_user || !test_pw || if(!test_user || !test_pw ||
test_user[0] == '\0' || test_pw[0] == '\0') { test_user[0] == '\0' || test_pw[0] == '\0') {
continue; continue;