_dbus_file_path_extract_elements_from_tail: don't misuse static variable
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 29 Aug 2013 11:49:35 +0000 (12:49 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 30 Aug 2013 16:32:15 +0000 (17:32 +0100)
commitcc28d8d91055e7640932c67031ca0ec86dddac06
tree8932387126609e0c2ff66ee1f1c2e5a2e644debf
parent31edd76313922780fb640f13ad1b5ed130fe442b
_dbus_file_path_extract_elements_from_tail: don't misuse static variable

If we _dbus_verbose() from more than one thread at the same time,
we don't want to get into trouble with static variables (and I don't
think micro-optimizing this function is really worth it anyway).

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