Actually return newly-created structs.
authorOmari Stephens <xsdg@google.com>
Mon, 10 Jul 2017 08:06:21 +0000 (08:06 +0000)
committerOmari Stephens <xsdg@google.com>
Mon, 10 Jul 2017 08:06:21 +0000 (08:06 +0000)
This was working properly in GCC, because of unreliable magic.  See:
https://stackoverflow.com/a/4644913

src/filecluster.c

index 36e5b4f..81a582a 100644 (file)
@@ -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)