diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2012-12-14 18:03:07 -0500 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2012-12-14 18:03:07 -0500 |
commit | 1c382655ad90b7cd224230452f7056040337facf (patch) | |
tree | 378e1dd57280308b4267f7f7c55677b233be3fd8 /src/bin/psql/tab-complete.c | |
parent | 75758a6ff01156e163779f5f7386fa36720fb38f (diff) |
Provide Assert() for frontend code.
Per discussion on-hackers. psql is converted to use the new code.
Follows a suggestion from Heikki Linnakangas.
Diffstat (limited to 'src/bin/psql/tab-complete.c')
-rw-r--r-- | src/bin/psql/tab-complete.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 18a2595a3e0..86d0f2e365c 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3558,7 +3558,7 @@ complete_from_list(const char *text, int state) const char *item; /* need to have a list */ - psql_assert(completion_charpp); + Assert(completion_charpp != NULL); /* Initialization */ if (state == 0) @@ -3620,7 +3620,7 @@ complete_from_list(const char *text, int state) static char * complete_from_const(const char *text, int state) { - psql_assert(completion_charp); + Assert(completion_charp != NULL); if (state == 0) { if (completion_case_sensitive) @@ -3708,7 +3708,7 @@ complete_from_files(const char *text, int state) /* expect a NULL return for the empty string only */ if (!unquoted_text) { - psql_assert(!*text); + Assert(*text == '\0'); unquoted_text = text; } } |