summaryrefslogtreecommitdiff
path: root/xdg-user-dirs-update.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2007-06-11 09:45:26 +0000
committerAlexander Larsson <alexl@redhat.com>2007-06-11 09:45:26 +0000
commit6fca772f58bb6a9f8879ce9623bf57273254493a (patch)
tree711b79bc93e662054d5ffa0e3422958374d7c705 /xdg-user-dirs-update.c
parent79dc404301769d332b97327238f7d0fe02bce0f8 (diff)
2007-06-11 Alexander Larsson <alexl@redhat.com>
* xdg-user-dirs-update.c: (find_dir): Handle dir being NULL. Reported by Daniel Macks
Diffstat (limited to 'xdg-user-dirs-update.c')
-rw-r--r--xdg-user-dirs-update.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xdg-user-dirs-update.c b/xdg-user-dirs-update.c
index b004a97..dd8e1b4 100644
--- a/xdg-user-dirs-update.c
+++ b/xdg-user-dirs-update.c
@@ -843,6 +843,9 @@ static Directory *
find_dir (Directory *dirs, const char *name)
{
int i;
+
+ if (dirs == NULL)
+ return NULL;
for (i = 0; dirs[i].name != NULL; i++)
{