lib/ctf-ir/utils.c: lazy-initialize the hash table of reserved keywords
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 6 Sep 2017 01:09:13 +0000 (21:09 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 17 Sep 2017 18:10:51 +0000 (14:10 -0400)
commitca39df123b25151feb069e8cbf3be41e2239c5e8
treed74e6f5f1577fcd8851e66ac23633d6503ff19dd
parentb7f20dbaad41b6124ab844961b4884f36fbd2b4c
lib/ctf-ir/utils.c: lazy-initialize the hash table of reserved keywords

This fixes bugs in static build context on platforms where the calling
order of library constructors is undefined: this constructor could be
called before GLib's constructor, in which case you cannot call
g_hash_table_new() because GLib's slice allocator is not initialized.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/ctf-ir/utils.c
This page took 0.024612 seconds and 4 git commands to generate.