]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
initalize ret
authorMark Andrews <marka@isc.org>
Wed, 15 Jan 2014 22:23:12 +0000 (09:23 +1100)
committerMark Andrews <marka@isc.org>
Wed, 15 Jan 2014 22:23:12 +0000 (09:23 +1100)
lib/irs/resconf.c

index 29cfb75fef6e67e65652270203feb741be45a8b7..cb2400795549eb6dd8eb83481bb8e9ae9c093ad2 100644 (file)
@@ -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) {