Commit 636c2f48 authored by Mark Andrews's avatar Mark Andrews
Browse files

initalize ret

parent 90b513b2
...@@ -483,7 +483,7 @@ irs_resconf_load(isc_mem_t *mctx, const char *filename, irs_resconf_t **confp) ...@@ -483,7 +483,7 @@ irs_resconf_load(isc_mem_t *mctx, const char *filename, irs_resconf_t **confp)
{ {
FILE *fp = NULL; FILE *fp = NULL;
char word[256]; char word[256];
isc_result_t rval, ret; isc_result_t rval, ret = ISC_R_SUCCESS;
irs_resconf_t *conf; irs_resconf_t *conf;
int i, stopchar; int i, stopchar;
...@@ -508,7 +508,6 @@ irs_resconf_load(isc_mem_t *mctx, const char *filename, irs_resconf_t **confp) ...@@ -508,7 +508,6 @@ irs_resconf_load(isc_mem_t *mctx, const char *filename, irs_resconf_t **confp)
errno = 0; errno = 0;
if ((fp = fopen(filename, "r")) != NULL) { if ((fp = fopen(filename, "r")) != NULL) {
ret = ISC_R_SUCCESS;
do { do {
stopchar = getword(fp, word, sizeof(word)); stopchar = getword(fp, word, sizeof(word));
if (stopchar == EOF) { if (stopchar == EOF) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment