diff options
author | Raphaël Hertzog <hertzog@debian.org> | 2015-08-25 21:55:55 +0200 |
---|---|---|
committer | Raphaël Hertzog <hertzog@debian.org> | 2015-08-25 21:55:55 +0200 |
commit | 21ee18bdbc9a9d4500e12a1399d51c593b8b31d4 (patch) | |
tree | 35c498d3ec731bcf7b90ce66bce68ecd54659250 /xmlcatalog.c | |
parent | de338c1adfa336ddb5177ceb5c63bcd868a0ebc7 (diff) | |
parent | 7300193becde71a344c8ac0973dc290fa24d800d (diff) | |
download | libxml2-21ee18bdbc9a9d4500e12a1399d51c593b8b31d4.tar.gz |
Merge tag 'upstream/2.9.1+dfsg1'
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"); |