blob: 3b8db1047aeb277f00e85a95c41a9017ea4528cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
https://src.fedoraproject.org/rpms/nauty/raw/rawhide/f/nauty-uninitialized.patch
--- a/traces.c
+++ b/traces.c
@@ -10160,7 +10160,7 @@ struct trie *trie_make(trie *t, int valu
struct trie *trie_new(int n, struct TracesVars* tv) {
- TrieArray[0] = malloc(n*sizeof(trie));
+ TrieArray[0] = calloc(n, sizeof(trie));
if (TrieArray[0] == NULL) {
fprintf(ERRFILE, "\nError, memory not allocated.\n");
exit(1);
|