Initialize variables that some compilers seem to warn about

This commit is contained in:
Tobias Brunner
2015-08-13 15:12:38 +02:00
parent f809e485fb
commit 6967948241
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ char* translate(char *str, const char *from, const char *to)
char* strreplace(const char *str, const char *search, const char *replace)
{
size_t len, slen, rlen, count = 0;
char *res, *pos, *found, *dst;
char *res, *pos, *found = NULL, *dst;
if (!str || !*str || !search || !*search || !replace)
{