1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-18 02:02:55 +03:00

SET_ARGS cleanup

This commit is contained in:
Bruce Momjian
1999-02-02 23:53:26 +00:00
parent f1b7823471
commit 4090d17fee
3 changed files with 10 additions and 14 deletions

View File

@@ -31,6 +31,7 @@ char *ps_status_buffer = NULL;
ps_status_buffer = (argv)[0]; \
sprintf(ps_status_buffer, "%s %s %s %s ", execname, username, hostname, dbname); \
ps_status_buffer += strlen(ps_status_buffer); \
ps_status_buffer[0] = '\0'; \
}
#define PS_CLEAR_STATUS() \
@@ -41,7 +42,7 @@ char *ps_status_buffer = NULL;
if (ps_status_buffer) \
{ \
PS_CLEAR_STATUS(); \
strcat(ps_status_buffer, status); \
strcpy(ps_status_buffer, status); \
} \
}