projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update g array ref
[babeltrace.git]
/
types
/
enum.c
diff --git
a/types/enum.c
b/types/enum.c
index 38a972a9c300392c467e56840df3312dad657691..6ad4d45038eabf37da04b05944b290d3bff983fe 100644
(file)
--- a/
types/enum.c
+++ b/
types/enum.c
@@
-62,8
+62,10
@@
GArray *enum_uint_to_quark_set(const struct type_class_enum *enum_class,
g_array_index(ranges, struct enum_range, ranges->len) = iter->range;
}
}
g_array_index(ranges, struct enum_range, ranges->len) = iter->range;
}
}
- if (!ranges)
+ if (!ranges)
{
ranges = qs;
ranges = qs;
+ g_array_ref(ranges);
+ }
return ranges;
}
return ranges;
}
@@
-101,8
+103,10
@@
GArray *enum_int_to_quark_set(const struct type_class_enum *enum_class, uint64_t
g_array_index(ranges, struct enum_range, ranges->len) = iter->range;
}
}
g_array_index(ranges, struct enum_range, ranges->len) = iter->range;
}
}
- if (!ranges)
+ if (!ranges)
{
ranges = qs;
ranges = qs;
+ g_array_ref(ranges);
+ }
return ranges;
}
return ranges;
}
This page took
0.024851 seconds
and
4
git commands to generate.