From 088d8259a2dac2bd89fd1ad958d69ee0a46953df Mon Sep 17 00:00:00 2001 From: waker Date: Sat, 26 Nov 2011 15:22:50 +0100 Subject: allow blank values in config variables --- conf.c | 4 ---- playlist.c | 1 - 2 files changed, 5 deletions(-) diff --git a/conf.c b/conf.c index f875d349..6d82f805 100644 --- a/conf.c +++ b/conf.c @@ -89,10 +89,6 @@ conf_load (void) { while (*p && *p <= 0x20) { p++; } - if (!*p) { - fprintf (stderr, "error in config file line %d\n", line); - continue; - } char *value = p; // remove trailing trash while (*p && *p >= 0x20) { diff --git a/playlist.c b/playlist.c index 181a68be..ec30b03d 100644 --- a/playlist.c +++ b/playlist.c @@ -2388,7 +2388,6 @@ pl_load_all (void) { char path[1024]; DB_conf_item_t *it = conf_find ("playlist.tab.", NULL); if (!it) { -// fprintf (stderr, "INFO: loading legacy default playlist\n"); // legacy (0.3.3 and earlier) char defpl[1024]; // $HOME/.config/deadbeef/default.dbpl if (snprintf (defpl, sizeof (defpl), "%s/default.dbpl", dbconfdir) > sizeof (defpl)) { -- cgit v1.2.3