mirror of https://github.com/djcb/mu.git
Fix some compiler warnings
This commit is contained in:
parent
b380e7d9c6
commit
8d4b866383
|
@ -580,7 +580,7 @@ clear_links (const gchar* dirname, DIR *dir, GError **err)
|
||||||
unsigned char d_type;
|
unsigned char d_type;
|
||||||
|
|
||||||
/* ignore empty, dot thingies */
|
/* ignore empty, dot thingies */
|
||||||
if (!entry->d_name || entry->d_name[0] == '.')
|
if (entry->d_name[0] == '\0' || entry->d_name[0] == '.')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* we have to copy the buffer from fullpath_s, because
|
/* we have to copy the buffer from fullpath_s, because
|
||||||
|
|
|
@ -123,9 +123,8 @@ runtime_free (void)
|
||||||
if (!_data)
|
if (!_data)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (_data->_str)
|
for (i = 0; i != MU_RUNTIME_PATH_NUM; ++i)
|
||||||
for (i = 0; i != MU_RUNTIME_PATH_NUM; ++i)
|
g_free (_data->_str[i]);
|
||||||
g_free (_data->_str[i]);
|
|
||||||
|
|
||||||
g_free (_data->_name);
|
g_free (_data->_name);
|
||||||
g_free (_data);
|
g_free (_data);
|
||||||
|
|
Loading…
Reference in New Issue