Pārlūkot izejas kodu

Change scope to always check the correct return value

master
lostd pirms 10 gadiem
vecāks
revīzija
0aefc2f496
1 mainītis faili ar 9 papildinājumiem un 8 dzēšanām
  1. +9
    -8
      noice.c

+ 9
- 8
noice.c Parādīt failu

@@ -748,15 +748,16 @@ moretyping:
if (r == 1)
nowtyping = 0;
/* Check regex errors */
if (tmp != NULL)
if (tmp != NULL) {
r = setfilter(&re, tmp);
if (r != 0)
if (nowtyping) {
goto moretyping;
} else {
free(tmp);
goto nochange;
}
if (r != 0)
if (nowtyping) {
goto moretyping;
} else {
free(tmp);
goto nochange;
}
}
/* Copy or reset filter */
free(filter);
if (tmp != NULL)


Notiek ielāde…
Atcelt
Saglabāt