summaryrefslogtreecommitdiff
path: root/gi/pygi-error.c
diff options
context:
space:
mode:
Diffstat (limited to 'gi/pygi-error.c')
-rw-r--r--gi/pygi-error.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gi/pygi-error.c b/gi/pygi-error.c
index 4feefc4b..18c488a0 100644
--- a/gi/pygi-error.c
+++ b/gi/pygi-error.c
@@ -328,11 +328,9 @@ pygi_arg_gerror_new_from_info (GITypeInfo *type_info,
PyGIDirection direction)
{
gboolean res = FALSE;
- PyGIArgCache *arg_cache = NULL;
+ PyGIArgCache *arg_cache;
arg_cache = pygi_arg_cache_alloc ();
- if (arg_cache == NULL)
- return NULL;
res = pygi_arg_gerror_setup_from_info (arg_cache,
type_info,