changeset 3604:285c6afe0c41

Allow passing NULL path_p to skin_parse_hints() to populate the skin with default settings.
author William Pitcock <nenolod@atheme.org>
date Sun, 23 Sep 2007 14:21:00 -0500
parents c983b83967db
children 4d157e02380f
files src/audacious/skin.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/skin.c	Sun Sep 23 13:47:56 2007 -0500
+++ b/src/audacious/skin.c	Sun Sep 23 14:21:00 2007 -0500
@@ -620,6 +620,9 @@
     skin->properties.mainwin_close_x = 264;
     skin->properties.mainwin_close_y = 3;
 
+    if (path_p == NULL)
+        return;
+
     filename = find_file_recursively(path_p, "skin.hints");
 
     if (filename == NULL)