From 636c2f488ca0ffaeba0a74dea153d6aaf67525c3 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 16 Jan 2014 09:23:12 +1100 Subject: [PATCH] initalize ret --- lib/irs/resconf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/irs/resconf.c b/lib/irs/resconf.c index 29cfb75fef..cb24007955 100644 --- a/lib/irs/resconf.c +++ b/lib/irs/resconf.c @@ -483,7 +483,7 @@ irs_resconf_load(isc_mem_t *mctx, const char *filename, irs_resconf_t **confp) { FILE *fp = NULL; char word[256]; - isc_result_t rval, ret; + isc_result_t rval, ret = ISC_R_SUCCESS; irs_resconf_t *conf; int i, stopchar; @@ -508,7 +508,6 @@ irs_resconf_load(isc_mem_t *mctx, const char *filename, irs_resconf_t **confp) errno = 0; if ((fp = fopen(filename, "r")) != NULL) { - ret = ISC_R_SUCCESS; do { stopchar = getword(fp, word, sizeof(word)); if (stopchar == EOF) {