diff mcabber/mcabber/utils.c @ 2253:5a107c907e71

Read $HOME/.mcabberrc if there is no mcabber configuration directory This was broken by ccd4ffa41a1b. This patch should fix issue #146.
author Mikael Berthe <mikael@lilotux.net>
date Sat, 27 Feb 2016 11:28:24 +0100
parents 377b6a52b25f
children f5402d705f67
line wrap: on
line diff
--- a/mcabber/mcabber/utils.c	Sat Feb 27 11:02:19 2016 +0100
+++ b/mcabber/mcabber/utils.c	Sat Feb 27 11:28:24 2016 +0100
@@ -315,6 +315,8 @@
   int fd;
   struct stat buf;
 
+  if (!name) return -1;
+
 #ifdef __CYGWIN__
   // Permission checking isn't efficient on Cygwin
   return 0;