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>
Fri, 15 Sep 2017 18:49:38 +0000 (14:49 -0400)
commit7e29d48b07ad8ff525b1be3768bc05be5748bce5
tree7705aecd9ce723a6e19671e94f6d194612837c1a
parent25b68514c79eccf640cfb61947c3ed3f95a95c16
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.025638 seconds and 4 git commands to generate.