From 9e6b354f2fa89d876079855225690977234deeac Mon Sep 17 00:00:00 2001 From: codehelp Date: Thu, 17 Feb 2011 17:26:40 +0000 Subject: [PATCH] avoid undefined error check variable. git-svn-id: http://emdebian.org/svn/current@7775 563faec7-e20c-0410-992a-a66f704d0ccd --- multistrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multistrap b/multistrap index 410df54..634d5c1 100755 --- a/multistrap +++ b/multistrap @@ -372,7 +372,7 @@ if ((defined $setupsh) and (-x $setupsh)) { # run first set of hooks &run_download_hooks(sort @{$hooks{'D'}}) if (defined $hooks{'D'}); my $err = &native if (not defined ($foreign) and $unpack eq "true"); -if ($err != 0) { +if (defined $err and $err != 0) { warn (_g("Native mode configuration reported an error!\n")); $warn_count++; }