aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-07 16:32:58 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-07 16:32:58 +0000
commit817e79e3c1ae12a75ebf9393ffece928895dfce1 (patch)
tree92b1b4e52fd75a9407ab151af72fbf84086956ed /src
parent49df55bd9afcf55fdfaf671adc171cd9d445aab1 (diff)
downloadmpd-817e79e3c1ae12a75ebf9393ffece928895dfce1.tar.gz
mpd-817e79e3c1ae12a75ebf9393ffece928895dfce1.tar.xz
mpd-817e79e3c1ae12a75ebf9393ffece928895dfce1.zip
fix bug with --no-create-db
git-svn-id: https://svn.musicpd.org/mpd/trunk@1373 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 13eb689fb..733b06bed 100644
--- a/src/main.c
+++ b/src/main.c
@@ -224,7 +224,7 @@ void establishListen(Options * options) {
exit(EXIT_FAILURE);
}
- if(!options->createDB && !options->updateDB &&
+ if(options->createDB < 0 && !options->updateDB &&
(listenSocket = establish(port))<0)
{
ERROR("error binding port\n");