forked from osmocom/wireshark
Fixed uninitialized value warning.
I am now *very* impressed by GCC's flow analysis. svn path=/trunk/; revision=46536
This commit is contained in:
parent
90f0616d25
commit
85dcc2d2c0
|
@ -320,6 +320,7 @@ sgetline(char *str, int *next) {
|
|||
|
||||
end = strstr(str, "\r\n");
|
||||
if (!end) {
|
||||
*next = strlen(str);
|
||||
return NULL;
|
||||
}
|
||||
*end = '\0';
|
||||
|
|
Loading…
Reference in New Issue