Commit b592e72f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

str_format_meta: missing initializer on error path

parent 3f2542bc
...@@ -818,6 +818,8 @@ char *str_format_meta(input_thread_t *input, const char *s) ...@@ -818,6 +818,8 @@ char *str_format_meta(input_thread_t *input, const char *s)
fread(str, len, 1, stream); fread(str, len, 1, stream);
str[len] = '\0'; str[len] = '\0';
} }
else
str = NULL;
fclose(stream); fclose(stream);
return str; return str;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment