aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.c
diff options
context:
space:
mode:
authorokan2014-01-28 00:42:20 +0000
committerokan2014-01-28 00:42:20 +0000
commit6bb22ee14e5ed7514df17cbc7d8f28f6c7c66d47 (patch)
treeb700efb313d39b6bcdfec539d2870612e34b432c /calmwm.c
parentd1e09bda56224c5ad33e282277546046bab91318 (diff)
downloadcwm-6bb22ee14e5ed7514df17cbc7d8f28f6c7c66d47.tar.gz
Move conf_init/clear into main - no behaviour change; from Tiago Cunha.
Diffstat (limited to '')
-rw-r--r--calmwm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/calmwm.c b/calmwm.c
index 9faf7b6..2add0d4 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: calmwm.c,v 1.86 2014/01/22 22:26:05 okan Exp $
+ * $OpenBSD: calmwm.c,v 1.87 2014/01/28 00:42:20 okan Exp $
*/
#include <sys/param.h>
@@ -108,8 +108,11 @@ main(int argc, char **argv)
}
conf_init(&Conf);
- if (conf_path && (parse_config(conf_path, &Conf) == -1))
+ if (conf_path && (parse_config(conf_path, &Conf) == -1)) {
warnx("config file %s has errors, not loading", conf_path);
+ conf_clear(&Conf);
+ conf_init(&Conf);
+ }
free(conf_path);
x_init(display_name);