Add missing 'else', per report from [email protected].
authorTom Lane <[email protected]>
Fri, 18 Jan 2002 16:14:54 +0000 (16:14 +0000)
committerTom Lane <[email protected]>
Fri, 18 Jan 2002 16:14:54 +0000 (16:14 +0000)
src/bin/psql/command.c

index f9d03809383c1153f78b43034efe58dd6c2635b2..44933b038fc21a2fc48ddf8b7ac8363c506c55fa 100644 (file)
@@ -710,7 +710,7 @@ exec_command(const char *cmd,
                        psql_error("\\%s: missing required argument\n", cmd);
                        success = false;
                }
-               if (!SetVariable(pset.vars, opt, NULL))
+               else if (!SetVariable(pset.vars, opt, NULL))
                {
                        psql_error("\\%s: error\n", cmd);
                        success = false;