From: Joey Hess <joey@kodama.kitenet.net>
Date: Mon, 8 Sep 2008 23:21:45 +0000 (-0400)
Subject: Avoid uninitialised value when --dumpsetup is used and no srcdir/destdir specified.
X-Git-Tag: 2.64~96
X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/0e654c1ea0b7009f497a7fc6f44263ee79860dd8

Avoid uninitialised value when --dumpsetup is used and no srcdir/destdir specified.
---

diff --git a/debian/changelog b/debian/changelog
index e72b3c134..02017174c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ikiwiki (2.64) UNRELEASED; urgency=low
+
+  * Avoid uninitialised value when --dumpsetup is used and no srcdir/destdir
+    specified.
+
+ -- Joey Hess <joeyh@debian.org>  Mon, 08 Sep 2008 19:21:20 -0400
+
 ikiwiki (2.63) unstable; urgency=low
 
   * Set cookies HttpOnly.
diff --git a/ikiwiki.in b/ikiwiki.in
index e0a657cda..878d35065 100755
--- a/ikiwiki.in
+++ b/ikiwiki.in
@@ -154,6 +154,7 @@ sub main () { #{{{
 	}
 
 	if ($config{dumpsetup}) {
+		$config{srdir}=$config{destdir}="";
 		require IkiWiki::Setup;
 		IkiWiki::Setup::dump($config{dumpsetup});
 	}