From cc1b2c100fc6dd44a690652ecd3c5788b0438ea7 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Sun, 2 Nov 2008 18:52:13 +0000 Subject: bring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 branch, and add the ones needed for all the new code here too git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153616 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_adsiprog.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/app_adsiprog.c') diff --git a/apps/app_adsiprog.c b/apps/app_adsiprog.c index f35a81eea..126068c94 100644 --- a/apps/app_adsiprog.c +++ b/apps/app_adsiprog.c @@ -1379,7 +1379,9 @@ static struct adsi_script *compile_script(char *script) /* Create "main" as first subroutine */ getsubbyname(scr, "main", NULL, 0); while (!feof(f)) { - fgets(buf, sizeof(buf), f); + if (!fgets(buf, sizeof(buf), f)) { + continue; + } if (!feof(f)) { lineno++; /* Trim off trailing return */ -- cgit v1.2.3