Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

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

1 comment on commit 15d0b9e

@ppuskari

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

Please sign in to comment.
Something went wrong with that request. Please try again.