From 52b69a01963c9f30f95d9a3e15d9584b50566919 Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Sat, 17 Dec 2011 19:49:12 +0400 Subject: [PATCH] initialize gammu only when enabled in config --- yasnd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yasnd.c b/yasnd.c index 8c968f8..142aa39 100644 --- a/yasnd.c +++ b/yasnd.c @@ -106,7 +106,8 @@ void init() hosts[i].alert_sent=false; } // initialize gammu structures - gammu_init(); + if (sms_send_enable) + gammu_init(); } void check_host(int num,host_decl* host)