summaryrefslogtreecommitdiffstats
path: root/draksnapshot-applet
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-09-30 17:05:58 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-09-30 17:05:58 +0000
commit614f10448722dd73c05fd2f6b74b84d3705f4730 (patch)
tree8079bc5f026a560f0cdc805fbb89320d5ceacc0e /draksnapshot-applet
parentd27e0faeb223517b28cd3901ecc813226929440a (diff)
downloaddraksnapshot-614f10448722dd73c05fd2f6b74b84d3705f4730.tar
draksnapshot-614f10448722dd73c05fd2f6b74b84d3705f4730.tar.gz
draksnapshot-614f10448722dd73c05fd2f6b74b84d3705f4730.tar.bz2
draksnapshot-614f10448722dd73c05fd2f6b74b84d3705f4730.tar.xz
draksnapshot-614f10448722dd73c05fd2f6b74b84d3705f4730.zip
fix crash introduced in 0.18
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@247173 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
Diffstat (limited to 'draksnapshot-applet')
-rwxr-xr-xdraksnapshot-applet3
1 files changed, 2 insertions, 1 deletions
diff --git a/draksnapshot-applet b/draksnapshot-applet
index 715604e..765d31f 100755
--- a/draksnapshot-applet
+++ b/draksnapshot-applet
@@ -93,7 +93,8 @@ my $dbus_error = $@;
# initializing DBus/HAL:
my ($do, $con);
-if ($dbus && $do = eval { dbus_object->new($dbus, $hal_dn, $manager_path, $hal_manager) }) {
+$do = eval { dbus_object->new($dbus, $hal_dn, $manager_path, $hal_manager) };
+if ($dbus && $do) {
$con = eval { $dbus->{connection} };
my $old_time;