aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/closure.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-10-29 13:48:15 +0000
committerdrh <drh@noemail.net>2015-10-29 13:48:15 +0000
commitc56fac7483c195e4d309efc5e4459579fde2e77e (patch)
treedb5e70540eacb42c8d7eea90a72f5637fb4bf4a8 /ext/misc/closure.c
parentde4148e304512686cac28013cb1cdccb1978918a (diff)
downloadsqlite-c56fac7483c195e4d309efc5e4459579fde2e77e.tar.gz
sqlite-c56fac7483c195e4d309efc5e4459579fde2e77e.zip
Fix uses of ctype functions (ex: isspace()) on signed characters in test
programs and in some obscure extensions. No changes to the core. FossilOrigin-Name: 34eb6911afee09e779318b79baf953f616200128
Diffstat (limited to 'ext/misc/closure.c')
-rw-r--r--ext/misc/closure.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/misc/closure.c b/ext/misc/closure.c
index 30c812d22..510c46ec9 100644
--- a/ext/misc/closure.c
+++ b/ext/misc/closure.c
@@ -486,10 +486,10 @@ static const char *closureValueOfKey(const char *zKey, const char *zStr){
int i;
if( nStr<nKey+1 ) return 0;
if( memcmp(zStr, zKey, nKey)!=0 ) return 0;
- for(i=nKey; isspace(zStr[i]); i++){}
+ for(i=nKey; isspace((unsigned char)zStr[i]); i++){}
if( zStr[i]!='=' ) return 0;
i++;
- while( isspace(zStr[i]) ){ i++; }
+ while( isspace((unsigned char)zStr[i]) ){ i++; }
return zStr+i;
}