From 654dc6e616cdd171043e54653c6176f3bcb77fdd Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 16 Feb 2007 23:37:14 +0000 Subject: [PATCH] fix copy/paste error on setting SWITCH_GLOBAL_dirs.temp_dir on windows. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4305 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_core.c b/src/switch_core.c index c0f03511b0..6eb84ea84b 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -4007,8 +4007,8 @@ SWITCH_DECLARE(void) switch_core_set_globals(void) #else #ifdef WIN32 GetTempPath(dwBufSize, lpPathBuffer); - if (!SWITCH_GLOBAL_dirs.htdocs_dir && (SWITCH_GLOBAL_dirs.htdocs_dir = (char *) malloc(BUFSIZE))) { - snprintf(SWITCH_GLOBAL_dirs.htdocs_dir, BUFSIZE, "%s", lpPathBuffer); + if (!SWITCH_GLOBAL_dirs.temp_dir && (SWITCH_GLOBAL_dirs.htdocs_dir = (char *) malloc(BUFSIZE))) { + snprintf(SWITCH_GLOBAL_dirs.temp_dir, BUFSIZE, "%s", lpPathBuffer); } #else SWITCH_GLOBAL_dirs.temp_dir = "/tmp/";