diff options
author | Daniel Veillard <veillard@redhat.com> | 2009-09-05 14:52:55 +0200 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2009-09-05 14:52:55 +0200 |
commit | 13cee4e37ba9f2a401f976e069539514ebfce7bc (patch) | |
tree | 2944214df2b8ace8482bf1f10313dc7117b31180 /debugXML.c | |
parent | 141ebfa0282652910bc89f2f106eca408c03bd06 (diff) | |
download | android_external_libxml2-13cee4e37ba9f2a401f976e069539514ebfce7bc.tar.gz android_external_libxml2-13cee4e37ba9f2a401f976e069539514ebfce7bc.tar.bz2 android_external_libxml2-13cee4e37ba9f2a401f976e069539514ebfce7bc.zip |
Fix a bunch of scan 'dead increments' and cleanup
* HTMLparser.c c14n.c debugXML.c entities.c nanohttp.c parser.c
testC14N.c uri.c xmlcatalog.c xmllint.c xmlregexp.c xpath.c:
fix unused variables, or unneeded increments as well as a couple
of space issues
* runtest.c: check for NULL before calling unlink()
Diffstat (limited to 'debugXML.c')
-rw-r--r-- | debugXML.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -2803,7 +2803,6 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input, { char prompt[500] = "/ > "; char *cmdline = NULL, *cur; - int nbargs; char command[100]; char arg[400]; int i; @@ -2855,7 +2854,6 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input, * Parse the command itself */ cur = cmdline; - nbargs = 0; while ((*cur == ' ') || (*cur == '\t')) cur++; i = 0; @@ -2868,7 +2866,6 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input, command[i] = 0; if (i == 0) continue; - nbargs++; /* * Parse the argument @@ -2882,8 +2879,6 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input, arg[i++] = *cur++; } arg[i] = 0; - if (i != 0) - nbargs++; /* * start interpreting the command |