]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Do not write, if no string is passed
authorerdgeist <>
Wed, 24 Jan 2007 21:18:42 +0000 (21:18 +0000)
committererdgeist <>
Wed, 24 Jan 2007 21:18:42 +0000 (21:18 +0000)
scan_urlencoded_query.c

index fdcc3e6dc6fb4704a2ddd41002eadeb595ce45b7..8cea5078ccf4a36103b17fc0e3d482d732fba591 100644 (file)
@@ -38,7 +38,7 @@ retry_parsing:
     break;
   case '?':
     if( flags == SCAN_PATH ) goto found_terminator;
-    *d++ = c;
+    if( d ) *d++ = c;
     goto retry_parsing;
     break;
   case '=':