]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus-send: Fix fail to run without "--dest" option
authorChengwei Yang <chengwei.yang@intel.com>
Wed, 19 Jun 2013 08:35:43 +0000 (16:35 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 20 Jun 2013 12:30:40 +0000 (13:30 +0100)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65923
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
tools/dbus-send.c

index ca5dd5c68502c3788d3a245c8b5a1bd71b8de3b3..2e37b08982166b442d46671319805946efdcc793 100644 (file)
@@ -348,7 +348,7 @@ main (int argc, char *argv[])
   
   dbus_error_init (&error);
 
-  if (!dbus_validate_bus_name (dest, &error))
+  if (dest && !dbus_validate_bus_name (dest, &error))
     {
       fprintf (stderr, "invalid value (%s) of \"--dest\"\n", dest);
       usage (1);