projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fe71c7
)
glocalfileinfo: Suppress static analysis return value warning
author
Colin Walters
<walters@verbum.org>
Tue, 22 Jul 2014 18:22:23 +0000
(14:22 -0400)
committer
Colin Walters
<walters@verbum.org>
Wed, 23 Jul 2014 11:43:41 +0000
(07:43 -0400)
Just ignore the return value, since we're checking contents != NULL.
https://bugzilla.gnome.org/show_bug.cgi?id=733576
gio/glocalfileinfo.c
patch
|
blob
|
history
diff --git
a/gio/glocalfileinfo.c
b/gio/glocalfileinfo.c
index
71ba728
..
7c46837
100644
(file)
--- a/
gio/glocalfileinfo.c
+++ b/
gio/glocalfileinfo.c
@@
-1455,7
+1455,7
@@
read_hidden_file (const gchar *dirname)
gchar *filename;
filename = g_build_path ("/", dirname, ".hidden", NULL);
- g_file_get_contents (filename, &contents, NULL, NULL);
+
(void)
g_file_get_contents (filename, &contents, NULL, NULL);
g_free (filename);
if (contents != NULL)