[cowdancer] 02/02: qemubuilder.c: Fixed inverted error check for asprintf breaking --update

James Clarke jrtc27-guest at moszumanska.debian.org
Thu Apr 28 11:52:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

jrtc27-guest pushed a commit to branch master
in repository cowdancer.

commit 464f5088e5fbde3543c2749be611947f3fbda215
Author: Peter Pentchev <roam at ringlet.net>
Date:   Thu Apr 28 13:17:22 2016 +0300

    qemubuilder.c: Fixed inverted error check for asprintf breaking --update
    
    Closes: #822849
---
 qemubuilder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qemubuilder.c b/qemubuilder.c
index b8c92c5..1a591dc 100755
--- a/qemubuilder.c
+++ b/qemubuilder.c
@@ -977,7 +977,7 @@ int cpbuilder_update(const struct pbuilderconfig* pc)
      There is no way to change distribution in this code-path...
    */
   char *script;
-  if (0<asprintf(&script,
+  if (0>asprintf(&script,
 		 //TODO: installaptlines if required.
 		 //TODO: "dpkg --purge $REMOVEPACKAGES\n"
 		 //TODO: add error code handling.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/cowdancer.git



More information about the Pbuilder-maint mailing list