aboutsummaryrefslogtreecommitdiffstats
path: root/epan/except.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-10-20 02:03:21 -0700
committerGuy Harris <guy@alum.mit.edu>2014-10-20 09:04:44 +0000
commitc3f14ab3d4433ce95cd326176faa187a5ad3eba1 (patch)
tree391d01d789469e14d874cf70f5ac16c96aa24667 /epan/except.c
parent991743b0b1cce99305a4b3162d6c520a09877c15 (diff)
Don't use toupper() in the test program.
We're not including ctype.h in the test program, so don't use toupper(). The test program might not be built with GLib, so don't use g_ascii_toupper(), either. Just compare against both 'Y' and 'y'. Change-Id: Iabc04a5fecb04110c0d16b24a047de72eabbb2bc Reviewed-on: https://code.wireshark.org/review/4870 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/except.c')
-rw-r--r--epan/except.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/except.c b/epan/except.c
index bb13f4f971..9efbb00c48 100644
--- a/epan/except.c
+++ b/epan/except.c
@@ -391,7 +391,7 @@ static void bottom_level(void)
printf("throw exception? "); fflush(stdout);
fgets(buf, sizeof buf, stdin);
- if (buf[0] >= 0 && toupper(buf[0]) == 'Y')
+ if (buf[0] >= 0 && (buf[0] == 'Y' || buf[0] == 'y'))
except_throw(1, 1, "nasty exception");
}