diff --git a/upnpsoap.c b/upnpsoap.c index 7909bda..bee739a 100644 --- a/upnpsoap.c +++ b/upnpsoap.c @@ -304,6 +304,8 @@ set_filter_flags(char * filter) { if( saveptr ) *(item-1) = ','; + while( isspace(*item) ) + item++; if( strcmp(item, "@childCount") == 0 ) { flags |= FILTER_CHILDCOUNT;