Skip to content
Snippets Groups Projects
Commit 66704f67 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Catch \ at end of filter

parent 4d940929
No related branches found
No related tags found
No related merge requests found
...@@ -426,6 +426,8 @@ find_wildcard( char *s ) ...@@ -426,6 +426,8 @@ find_wildcard( char *s )
case '\\': case '\\':
s++; /* skip over escape */ s++; /* skip over escape */
if ( *s == '\0' )
return NULL; /* escape at end of string */
if( hex2value( s[0] ) >= 0 && hex2value( s[1] ) >= 0 ) { if( hex2value( s[0] ) >= 0 && hex2value( s[1] ) >= 0 ) {
/* skip over lead digit of two hex digit code */ /* skip over lead digit of two hex digit code */
s++; s++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment