summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-11-26 15:22:50 +0100
committerGravatar waker <wakeroid@gmail.com>2011-11-26 15:22:50 +0100
commit088d8259a2dac2bd89fd1ad958d69ee0a46953df (patch)
treead5133647279609a1b6f3dc6ba66b4da15e8b127
parentf9f579fc98a1ee81823f0a5741f3ee8468bea4e3 (diff)
allow blank values in config variables
-rw-r--r--conf.c4
-rw-r--r--playlist.c1
2 files changed, 0 insertions, 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)) {