Fixed uninitialized value warning.

I am now *very* impressed by GCC's flow analysis.

svn path=/trunk/; revision=46536
This commit is contained in:
Evan Huus 2012-12-14 03:00:08 +00:00
parent 90f0616d25
commit 85dcc2d2c0
1 changed files with 1 additions and 0 deletions

View File

@ -320,6 +320,7 @@ sgetline(char *str, int *next) {
end = strstr(str, "\r\n");
if (!end) {
*next = strlen(str);
return NULL;
}
*end = '\0';