pidgin/gtkthemes.c

branch
release-2.x.y
changeset 35991
e6937e52930b
parent 35967
cde50837937d
child 35997
23e05a4a90b3
--- a/pidgin/gtkthemes.c	Tue May 06 18:28:56 2014 +0200
+++ b/pidgin/gtkthemes.c	Tue May 06 19:38:50 2014 +0200
@@ -410,7 +410,10 @@
 			}
 			g_dir_close(dir);
 		} else if (l == 1) {
-			g_mkdir(probedirs[l], S_IRUSR | S_IWUSR | S_IXUSR);
+			if (g_mkdir(probedirs[l], S_IRUSR | S_IWUSR | S_IXUSR) != 0) {
+				purple_debug_error("gtkthemes",
+					"couldn't create smileys dir\n");
+			}
 		}
 		g_free(probedirs[l]);
 	}

mercurial