diff --git a/girepository/girparser.c b/girepository/girparser.c index c80574f3f..dee322b50 100644 --- a/girepository/girparser.c +++ b/girepository/girparser.c @@ -670,6 +670,9 @@ parse_type_internal (GIIrModule *module, type->is_pointer = TRUE; str += strlen ("Error"); + /* Silence a scan-build false positive */ + g_assert (str != NULL); + if (*str == '<') { char *tmp, *end;