Sfoglia il codice sorgente

* Fix uninitialised variable in the filter handler.

pull/1/head
Sam Hocevar sam 19 anni fa
parent
commit
3bde5b8d8d
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. +3
    -2
      src/filter.c

+ 3
- 2
src/filter.c Vedi File

@@ -65,9 +65,10 @@ int filter_add(context_t *cx, char const *filter)

for(i = sizeof(lookup) / sizeof(lookup[0]); i--; )
if(!strncmp(filter, lookup[i].name, strlen(lookup[i].name)))
{
n = strlen(lookup[i].name);
break;

n = strlen(lookup[i].name);
}

if(i == -1 || (filter[n] != ':' && filter[n] != '\0'))
{


Caricamento…
Annulla
Salva