Permalink
Browse files

src/settings.c: fix fclose outside of file loop

  • Loading branch information...
1 parent 1c16287 commit 15d0b9ec25159d1d665e14ab8ed43860717dc1e9 @sk1080 committed Sep 23, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/settings.c
View
@@ -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

1 comment on commit 15d0b9e

This fixed my seg faults for Ubuntu 12.04 x64 as well! Thanks!

Please sign in to comment.