Skip to content

Fix fclose outside of file loop, fixes crash on startup #307

Closed
wants to merge 1 commit into from
+3 −2
View
5 src/settings.c
@@ -316,6 +316,9 @@ void BarSettingsRead (BarSettings_t *settings) {
}
}
}
+
+ fclose (configfd);
+
}
/* check environment variable if proxy is not set explicitly */
@@ -325,8 +328,6 @@ void BarSettingsRead (BarSettings_t *settings) {
settings->proxy = strdup (tmpProxy);
}
}
-
- fclose (configfd);
}
/* write statefile
Something went wrong with that request. Please try again.