diff src/audacious/widgets/skin.c @ 2577:1967594c1123 trunk

[svn] - avoid an exception
author nenolod
date Sun, 25 Feb 2007 22:03:15 -0800
parents 299be5908480
children 33911de063cb
line wrap: on
line diff
--- a/src/audacious/widgets/skin.c	Sun Feb 25 18:17:25 2007 -0800
+++ b/src/audacious/widgets/skin.c	Sun Feb 25 22:03:15 2007 -0800
@@ -542,6 +542,10 @@
     path_p = path_p ? path_p : skin->path;
 
     filename = find_file_recursively(path_p, "skin.hints");
+
+    if (filename == NULL)
+        return;
+
     inifile = open_ini_file(filename);
 
     skin->properties.mainwin_othertext = FALSE;