--- 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;