Do not use g_quark_from_static_string in unloadable code
authorNathan Lynch <nathan_lynch@mentor.com>
Fri, 5 Aug 2016 19:59:42 +0000 (14:59 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 19 Aug 2016 16:27:55 +0000 (12:27 -0400)
commit2ea5cc8bf09351765d7cba940a822569dcd2c856
treec758ba535b8b46703a2deb0a08acb84e7c2fad39
parentd7503815516dc78258eb0a6d7ffd2aa9e83caadd
Do not use g_quark_from_static_string in unloadable code

The GLib Quark documentation says that g_quark_from_static_string:

   "... can only be used if the string will continue to exist until the
    program terminates. It can be used with statically allocated
    strings in the main program, but not with statically allocated
    memory in dynamically loaded modules."

https://developer.gnome.org/glib/stable/glib-Quarks.html#g-quark-from-static-string

Convert call sites of g_quark_from_static_string to
g_quark_from_string in code that is potentially unloadable. Call
sites in the babeltrace main program remain unchanged.

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/bt-dummy/bt-dummy.c
formats/ctf-metadata/ctf-metadata.c
formats/ctf-text/ctf-text.c
formats/ctf/ctf.c
formats/ctf/metadata/ctf-visitor-generate-io-struct.c
formats/lttng-live/lttng-live-comm.c
formats/lttng-live/lttng-live-plugin.c
lib/debug-info.c
types/enum.c
types/float.c
This page took 0.025545 seconds and 4 git commands to generate.