mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
glocalfileinfo: Remove a redundant store
This fixes a scan-build warning: ``` ../../../../source/glib/gio/glocalfileinfo.c:1661:28: warning: Although the value stored to 'mydirname' is used in the enclosing expression, the value is never actually read from 'mydirname' [deadcode.DeadStores] mydirname = g_strdup (dirname), ^ ~~~~~~~~~~~~~~~~~~ ``` Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1767
This commit is contained in:
parent
b509e59726
commit
a17a27bcf1
@ -1651,14 +1651,12 @@ file_is_hidden (const gchar *path,
|
||||
if (!g_hash_table_lookup_extended (hidden_cache, dirname,
|
||||
NULL, (gpointer *) &data))
|
||||
{
|
||||
gchar *mydirname;
|
||||
|
||||
data = g_new0 (HiddenCacheData, 1);
|
||||
data->hidden_files = table = read_hidden_file (dirname);
|
||||
data->timestamp_secs = g_get_monotonic_time () / G_USEC_PER_SEC;
|
||||
|
||||
g_hash_table_insert (hidden_cache,
|
||||
mydirname = g_strdup (dirname),
|
||||
g_strdup (dirname),
|
||||
data);
|
||||
|
||||
if (!hidden_cache_source)
|
||||
|
Loading…
Reference in New Issue
Block a user