From 85536b2848b8c7f5ed6212db56b4b60592990a00 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sat, 13 Jul 2013 16:39:21 +0200 Subject: common: Fix WIN32 portability for recent userpref security fix --- common/userpref.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/userpref.c b/common/userpref.c index ab3a3cf..760eb58 100644 --- a/common/userpref.c +++ b/common/userpref.c @@ -22,12 +22,17 @@ #ifdef HAVE_CONFIG_H #include #endif + #include #include #include #include +#ifdef HAVE_SYS_TYPES_H #include +#endif +#ifndef WIN32 #include +#endif #include #ifdef HAVE_OPENSSL #include @@ -155,7 +160,7 @@ static char *get_home_dir_from_system(void) static const char *userpref_get_config_dir() { - char *base_config_dir; + char *base_config_dir = NULL; int use_dot_config; if (__config_dir) -- cgit v1.1-32-gdbae