mirror of
https://github.com/postgres/postgres.git
synced 2025-08-06 18:42:54 +03:00
change strtok(0.. to strtok(NULL..
From: Keith Parks <emkxp01@mtcc.demon.co.uk>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user