]> granicus.if.org Git - postgresql/blobdiff - src/bin/psql/tab-complete.c
Provide Assert() for frontend code.
[postgresql] / src / bin / psql / tab-complete.c
index 18a2595a3e013bf44291f01d00892642dd2a708f..86d0f2e365ced44cea77fb04fa65c78c19fb5543 100644 (file)
@@ -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;
                }
        }