From 5fef41c39129e20977b2345a39cf13bc85875dbe Mon Sep 17 00:00:00 2001 From: Omari Stephens Date: Mon, 10 Jul 2017 08:06:21 +0000 Subject: [PATCH] Actually return newly-created structs. This was working properly in GCC, because of unreliable magic. See: https://stackoverflow.com/a/4644913 --- src/filecluster.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/filecluster.c b/src/filecluster.c index 36e5b4f5..81a582ae 100644 --- a/src/filecluster.c +++ b/src/filecluster.c @@ -62,12 +62,14 @@ FileClusterList *fileclusterlist_new() { FileClusterList *fcl = g_new0(FileClusterList, 1); fcl->clusters = g_hash_table_new(&filecluster_fd_hash, &filecluster_fd_equal); + return fcl; } FileCluster *filecluster_new() { FileCluster *fc = g_new0(FileCluster, 1); fc->show_children = FALSE; + return fc; } void fileclusterlist_free(FileClusterList *fcl) -- 2.20.1