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:
d0d10e8
)
Don't dereference identifier_type if it is NULL (#579558)
author
Alexander Larsson
<alexl@redhat.com>
Wed, 20 May 2009 12:46:51 +0000
(14:46 +0200)
committer
Alexander Larsson
<alexl@redhat.com>
Wed, 20 May 2009 12:46:51 +0000
(14:46 +0200)
gio/gunixvolume.c
patch
|
blob
|
history
diff --git
a/gio/gunixvolume.c
b/gio/gunixvolume.c
index
16e7067
..
91cb346
100644
(file)
--- a/
gio/gunixvolume.c
+++ b/
gio/gunixvolume.c
@@
-487,7
+487,8
@@
g_unix_volume_get_identifier (GVolume *volume,
{
GUnixVolume *unix_volume = G_UNIX_VOLUME (volume);
- if (strcmp (kind, unix_volume->identifier_type) == 0)
+ if (unix_volume->identifier_type != NULL &&
+ strcmp (kind, unix_volume->identifier_type) == 0)
return g_strdup (unix_volume->identifier);
return NULL;
}