diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2004-04-20 10:43:26 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2004-04-20 10:43:26 -0400 |
commit | bff0a2c0390cf1536254ea168d2581cc9550325f (patch) | |
tree | e4a4282b59e956f52921e3d138a96d858ad4e7f0 /WWW/Library | |
parent | c8a4110f7fc51d0c90eff9cbfd351f2c0757154d (diff) | |
download | lynx-snapshots-bff0a2c0390cf1536254ea168d2581cc9550325f.tar.gz |
snapshot of project "lynx", label v2-8-6dev_1
Diffstat (limited to 'WWW/Library')
-rw-r--r-- | WWW/Library/Implementation/HTString.c | 6 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTUtils.h | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/WWW/Library/Implementation/HTString.c b/WWW/Library/Implementation/HTString.c index 2177a108..6b4a9c3b 100644 --- a/WWW/Library/Implementation/HTString.c +++ b/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]))) diff --git a/WWW/Library/Implementation/HTUtils.h b/WWW/Library/Implementation/HTUtils.h index bf2f3bc3..bea5ef49 100644 --- a/WWW/Library/Implementation/HTUtils.h +++ b/WWW/Library/Implementation/HTUtils.h @@ -571,6 +571,10 @@ extern int WWW_TraceMask; #define TRACE_CFG (TRACE_bit(3)) #define TRACE_BSTRING (TRACE_bit(4)) +#if defined(USE_VERTRACE) && !defined(LY_TRACELINE) +#define LY_TRACELINE __LINE__ +#endif + #if defined(LY_TRACELINE) #define LY_SHOWWHERE fprintf( tfp, "%s: %d: ", __FILE__, LY_TRACELINE ), #else |