From a6b382fa40da25f720dccd22605cec50c3e115ba Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Wed, 22 Oct 2003 03:12:17 +0000
Subject: [PATCH] Small SQL fix (bug #412)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_voicemail2.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c
index 2f8b165102..1a14708bf9 100755
--- a/apps/app_voicemail2.c
+++ b/apps/app_voicemail2.c
@@ -2926,9 +2926,10 @@ int load_module(void)
 		return(res);
 	}
 
+	if ((res = sql_init())) {
 		ast_log(LOG_WARNING, "SQL init\n");
-	if ((res = sql_init()))
 		return res;
+	}
 	return res;
 }
 
-- 
GitLab