Fix some compiler warnings

This commit is contained in:
djcb 2016-02-14 12:13:11 +02:00
parent b380e7d9c6
commit 8d4b866383
2 changed files with 3 additions and 4 deletions

View File

@ -580,7 +580,7 @@ clear_links (const gchar* dirname, DIR *dir, GError **err)
unsigned char d_type;
/* ignore empty, dot thingies */
if (!entry->d_name || entry->d_name[0] == '.')
if (entry->d_name[0] == '\0' || entry->d_name[0] == '.')
continue;
/* we have to copy the buffer from fullpath_s, because

View File

@ -123,9 +123,8 @@ runtime_free (void)
if (!_data)
return;
if (_data->_str)
for (i = 0; i != MU_RUNTIME_PATH_NUM; ++i)
g_free (_data->_str[i]);
for (i = 0; i != MU_RUNTIME_PATH_NUM; ++i)
g_free (_data->_str[i]);
g_free (_data->_name);
g_free (_data);