diff options
| author | 2004-06-22 04:52:34 +0000 | |
|---|---|---|
| committer | 2004-06-22 04:52:34 +0000 | |
| commit | 41e7215876ef95e820d500453f449cab8d9cd615 (patch) | |
| tree | ad14bb60031b70b3a74cc03d5fa2c34b525f63a6 /gnu/usr.bin/lynx/WWW/Library/Implementation/HTString.c | |
| parent | trim some other-os build stuff that crept in (diff) | |
| download | wireguard-openbsd-41e7215876ef95e820d500453f449cab8d9cd615.tar.xz wireguard-openbsd-41e7215876ef95e820d500453f449cab8d9cd615.zip | |
sync with lynx 2.8.5.rel2 which fixes a few minor bugs (null pointer checks,
progress bar with very slow connections)
Diffstat (limited to 'gnu/usr.bin/lynx/WWW/Library/Implementation/HTString.c')
| -rw-r--r-- | gnu/usr.bin/lynx/WWW/Library/Implementation/HTString.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/usr.bin/lynx/WWW/Library/Implementation/HTString.c b/gnu/usr.bin/lynx/WWW/Library/Implementation/HTString.c index 2177a108910..6b4a9c3b80f 100644 --- a/gnu/usr.bin/lynx/WWW/Library/Implementation/HTString.c +++ b/gnu/usr.bin/lynx/WWW/Library/Implementation/HTString.c @@ -877,11 +877,15 @@ PUBLIC char *HTQuoteParameter ARGS1( CONST char *, parameter) { size_t i; - size_t last = strlen(parameter); + size_t last; size_t n = 0; size_t quoted = 0; char * result; + if (parameter == 0) + parameter = ""; + + last = strlen(parameter); for (i=0; i < last; ++i) if (strchr("\\&#$^*?(){}<>\"';`|", parameter[i]) != 0 || isspace(UCH(parameter[i]))) |
