summaryrefslogtreecommitdiff
path: root/scan_urlencoded_query.c
diff options
context:
space:
mode:
authorerdgeist <>2007-01-24 21:18:42 +0000
committererdgeist <>2007-01-24 21:18:42 +0000
commitd7c00a909b24335ff3662859fd0dcd9001c47be9 (patch)
tree327ffba4777c6f407737b447ce50e51a14dacba4 /scan_urlencoded_query.c
parent99c1ba18963ddebf5b2d8b6d7424b762de7f5f75 (diff)
Do not write, if no string is passed
Diffstat (limited to 'scan_urlencoded_query.c')
-rw-r--r--scan_urlencoded_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scan_urlencoded_query.c b/scan_urlencoded_query.c
index fdcc3e6..8cea507 100644
--- a/scan_urlencoded_query.c
+++ b/scan_urlencoded_query.c
@@ -38,7 +38,7 @@ retry_parsing:
38 break; 38 break;
39 case '?': 39 case '?':
40 if( flags == SCAN_PATH ) goto found_terminator; 40 if( flags == SCAN_PATH ) goto found_terminator;
41 *d++ = c; 41 if( d ) *d++ = c;
42 goto retry_parsing; 42 goto retry_parsing;
43 break; 43 break;
44 case '=': 44 case '=':