From f8b0adf30db9672b2f7909a260134bdeb75bfdb0 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Tue, 11 Jun 2013 22:59:01 +0100 Subject: [PATCH] New compiler warnings --- jsonserver.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jsonserver.c b/jsonserver.c index 9ee9caf..ad92bea 100644 --- a/jsonserver.c +++ b/jsonserver.c @@ -98,8 +98,12 @@ bool cPluginJsonserver::Start(void) return false; } char* configFile; - asprintf(&configFile, "%s/jsonserver.conf", configDir); - + if (asprintf(&configFile, "%s/jsonserver.conf", configDir) == -1) + { + dsyslog("jsonserver: Error: asprintf"); + return false; + } + dsyslog("%s", configFile); log = new Log(); -- 2.39.5