diff options
author | Raphaël Hertzog <hertzog@debian.org> | 2015-08-25 21:55:54 +0200 |
---|---|---|
committer | Raphaël Hertzog <hertzog@debian.org> | 2015-08-25 21:55:54 +0200 |
commit | 7300193becde71a344c8ac0973dc290fa24d800d (patch) | |
tree | 6490c364e7764294c209e536d42f3d31d23ebc0d /xmlcatalog.c | |
parent | 3871a83a5f0aebd8c00879eab14fe901c93dbfcf (diff) | |
download | libxml2-7300193becde71a344c8ac0973dc290fa24d800d.tar.gz |
Imported Upstream version 2.9.1+dfsg1
Diffstat (limited to 'xmlcatalog.c')
-rw-r--r-- | xmlcatalog.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xmlcatalog.c b/xmlcatalog.c index b9ed6a4..43f455a 100644 --- a/xmlcatalog.c +++ b/xmlcatalog.c @@ -181,13 +181,12 @@ static void usershell(void) { /* * start interpreting the command */ - if (!strcmp(command, "exit") || - !strcmp(command, "quit") || - !strcmp(command, "bye")) { - free(cmdline); + if (!strcmp(command, "exit")) + break; + if (!strcmp(command, "quit")) + break; + if (!strcmp(command, "bye")) break; - } - if (!strcmp(command, "public")) { if (nbargs != 1) { printf("public requires 1 arguments\n"); |