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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user