_dbus_get_autolaunch_address: don't make argv static
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 29 Aug 2013 11:50:16 +0000 (12:50 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 30 Aug 2013 16:32:39 +0000 (17:32 +0100)
This function could be accessed from any thread, which would mean it
scribbles on argv twice.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68610
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
dbus/dbus-sysdeps-unix.c

index 1dcb6f8..13e13ca 100644 (file)
@@ -3463,7 +3463,7 @@ _dbus_get_autolaunch_address (const char *scope,
    * but that's done elsewhere, and if it worked, this function wouldn't
    * be called.) */
   const char *display;
-  static char *argv[6];
+  char *argv[6];
   int i;
   DBusString uuid;
   dbus_bool_t retval;