diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-06-13 12:53:44 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-06-13 12:53:44 +0000 |
commit | 1d2401044c5616361da5b8c9394b5e78f3874e8a (patch) | |
tree | 13be7fff609655cf52a1ea6c769eba46354274f7 | |
parent | f629962c6f66d05b5060cb25697cd0a25a54f45a (diff) | |
download | rpmdrake-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)
-rw-r--r-- | rpmdrake.pm | 2 |
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() { |