[perl-Glib-Object-Introspection] Make an assertion more precise
- From: Torsten SchÃnfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Glib-Object-Introspection] Make an assertion more precise
- Date: Sun, 13 May 2012 11:16:14 +0000 (UTC)
commit 76d9b1d3af0c2e5daa65080cf271651c06a81efb
Author: Torsten SchÃnfeld <kaffeetisch gmx de>
Date: Sat May 12 21:51:07 2012 +0200
Make an assertion more precise
gperl-i11n-marshal-array.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gperl-i11n-marshal-array.c b/gperl-i11n-marshal-array.c
index 026245c..d7e9164 100644
--- a/gperl-i11n-marshal-array.c
+++ b/gperl-i11n-marshal-array.c
@@ -36,7 +36,7 @@ array_to_sv (GITypeInfo *info,
length = g_type_info_get_array_fixed_size (info);
if (length < 0) {
guint length_pos = g_type_info_get_array_length (info);
- g_assert (iinfo != NULL);
+ g_assert (iinfo && iinfo->aux_args);
/* FIXME: Is it OK to always use v_size here? */
length = iinfo->aux_args[length_pos].v_size;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]