diff options
Diffstat (limited to 'src/values.c')
-rw-r--r-- | src/values.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/values.c b/src/values.c index 4920454..02544cd 100644 --- a/src/values.c +++ b/src/values.c @@ -34,14 +34,15 @@ slv2_values_new() void slv2_values_free(SLV2Values list) { - raptor_free_sequence(list); + if (list) + raptor_free_sequence(list); } unsigned slv2_values_size(SLV2Values list) { - return raptor_sequence_size(list); + return (list ? raptor_sequence_size(list) : 0); } |