From 9b7963c4fc9e458e54e757cc9ee4499518fe4528 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 9 Jan 2009 00:13:18 +0100 Subject: Handle common errors without dying --- config.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'config.c') diff --git a/config.c b/config.c index ed5c96f..e77ff2e 100644 --- a/config.c +++ b/config.c @@ -124,8 +124,6 @@ int load_configuration(const char *configfile) { } OPT("battery_path") { - if ((stat(dest_value, &stbuf)) == -1) - die("battery_path contains an invalid path"); battery_path = strdup(dest_value); } OPT("run_watch") -- cgit v1.2.3