Skip to content

Commit 3dfe802

Browse files
committed
Add missing 'else', per report from sugita@sra.co.jp.
1 parent 2ab3a88 commit 3dfe802

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/command.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.63 2001/11/05 17:46:30 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.64 2002/01/18 16:14:54 tgl Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "command.h"
@@ -710,7 +710,7 @@ exec_command(const char *cmd,
710710
psql_error("\\%s: missing required argument\n", cmd);
711711
success = false;
712712
}
713-
if (!SetVariable(pset.vars, opt, NULL))
713+
else if (!SetVariable(pset.vars, opt, NULL))
714714
{
715715
psql_error("\\%s: error\n", cmd);
716716
success = false;

0 commit comments

Comments
 (0)