Commit e88fd256 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Backport [19981]: handle NULL in decode_URI and unescape_URI

parent 44c78a34
......@@ -54,6 +54,8 @@ char *unescape_URI_duplicate( const char *psz )
void unescape_URI( char *psz )
{
unsigned char *in = (unsigned char *)psz, *out = in, c;
if( psz == NULL )
return;
while( ( c = *in++ ) != '\0' )
{
......@@ -135,6 +137,8 @@ char *decode_URI_duplicate( const char *psz )
void decode_URI( char *psz )
{
unsigned char *in = (unsigned char *)psz, *out = in, c;
if( psz == NULL )
return;
while( ( c = *in++ ) != '\0' )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment