aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-06-13 12:53:44 +0000
committerThierry Vignaud <tv@mandriva.org>2007-06-13 12:53:44 +0000
commit1d2401044c5616361da5b8c9394b5e78f3874e8a (patch)
tree13be7fff609655cf52a1ea6c769eba46354274f7 /rpmdrake.pm
parentf629962c6f66d05b5060cb25697cd0a25a54f45a (diff)
downloadrpmdrake-1d2401044c5616361da5b8c9394b5e78f3874e8a.tar
rpmdrake-1d2401044c5616361da5b8c9394b5e78f3874e8a.tar.gz
rpmdrake-1d2401044c5616361da5b8c9394b5e78f3874e8a.tar.bz2
rpmdrake-1d2401044c5616361da5b8c9394b5e78f3874e8a.tar.xz
rpmdrake-1d2401044c5616361da5b8c9394b5e78f3874e8a.zip
(writeconf) fix crash when trying to save non set variables (#31367)
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 1ca9bae4..338b11fd 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -174,7 +174,7 @@ sub readconf() {
sub writeconf() {
unlink $configfile;
- output $configfile, map { "$_ " . join(' ', @${$config{$_}{var}}) . "\n" } keys %config;
+ output $configfile, map { "$_ " . (ref ${$config{$_}{var}} ? join(' ', @${$config{$_}{var}}) : ()) . "\n" } keys %config;
}
sub getbanner() {