aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpq/fe-connect.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 25961b1f10d..17f34cf8b5d 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -4966,9 +4966,8 @@ conninfo_uri_parse_params(char *params,
++p;
break;
}
-
- /* Advance, NUL is checked in the 'if' above */
- ++p;
+ else
+ ++p; /* Advance over all other bytes. */
}
keyword = conninfo_uri_decode(keyword, errorMessage);