33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
|
From 0039d41002629342e245d43350702b502aabe3f1 Mon Sep 17 00:00:00 2001
|
||
|
From: Stephen Gallagher <sgallagh@redhat.com>
|
||
|
Date: Fri, 22 Jun 2018 13:26:01 -0400
|
||
|
Subject: [PATCH] Allocate Modulemd.props.buildopts at object creation
|
||
|
|
||
|
Resolves: https://github.com/fedora-modularity/libmodulemd/issues/72
|
||
|
|
||
|
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
|
||
|
---
|
||
|
modulemd/modulemd-module.c | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
diff --git a/modulemd/modulemd-module.c b/modulemd/modulemd-module.c
|
||
|
index 9eb391a4ff82f4b1b2f660276cb3f46962f774b7..49c4818a9130c7af31d4abf0cbbb898f06d779a3 100644
|
||
|
--- a/modulemd/modulemd-module.c
|
||
|
+++ b/modulemd/modulemd-module.c
|
||
|
@@ -3460,10 +3460,12 @@ modulemd_module_class_init (ModulemdModuleClass *klass)
|
||
|
|
||
|
static void
|
||
|
modulemd_module_init (ModulemdModule *self)
|
||
|
{
|
||
|
/* Allocate the members */
|
||
|
+ self->buildopts = modulemd_buildopts_new ();
|
||
|
+
|
||
|
self->buildrequires =
|
||
|
g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
|
||
|
|
||
|
self->module_components =
|
||
|
g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref);
|
||
|
--
|
||
|
2.17.1
|
||
|
|