diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-11-10 07:42:23 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-11-10 07:42:23 +0000 |
commit | 1182aa6f546608f436ae72a7392ff93564f8fd61 (patch) | |
tree | a35ef3c590f5800d8e5453edacc62741124d1b05 /epan/prefs.c | |
parent | 37f0fc43956f52be1e99627befaeaae4d8344f6a (diff) |
Don't pass signed characters to the <ctype.h> macros.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16457 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/prefs.c')
-rw-r--r-- | epan/prefs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/epan/prefs.c b/epan/prefs.c index 69f76522eb..90d87b0d53 100644 --- a/epan/prefs.c +++ b/epan/prefs.c @@ -164,6 +164,7 @@ prefs_register_module_or_subtree(module_t *parent, const char *name, { module_t *module; const char *p; + guchar c; module = g_malloc(sizeof (module_t)); module->name = name; @@ -190,10 +191,10 @@ prefs_register_module_or_subtree(module_t *parent, const char *name, * on the command line, and shouldn't require quoting, * shifting, etc. */ - for (p = name; *p != '\0'; p++) - g_assert(isascii(*p) && - (islower(*p) || isdigit(*p) || *p == '_' || - *p == '-' || *p == '.')); + for (p = name; (c = *p) != '\0'; p++) + g_assert(isascii(c) && + (islower(c) || isdigit(c) || c == '_' || + c == '-' || c == '.')); /* * Make sure there's not already a module with that |