diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-06-09 18:02:36 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-06-09 18:02:36 -0400 |
commit | 4bc424b968058c7f0aa685821d7039e86faac99c (patch) | |
tree | a4e245ae67bd11edb3926ff5fb3b0223438ac283 /src/bin/psql/prompt.c | |
parent | 9164deea2f4ac90ee5e008ff41fc5ad4423887b2 (diff) |
pgindent run for 9.6
Diffstat (limited to 'src/bin/psql/prompt.c')
-rw-r--r-- | src/bin/psql/prompt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/psql/prompt.c b/src/bin/psql/prompt.c index 647e8712d6a..fb08d67390a 100644 --- a/src/bin/psql/prompt.c +++ b/src/bin/psql/prompt.c @@ -166,7 +166,8 @@ get_prompt(promptStatus_t status) case 'p': if (pset.db) { - int pid = PQbackendPID(pset.db); + int pid = PQbackendPID(pset.db); + if (pid) snprintf(buf, sizeof(buf), "%d", pid); } |