fetch: don't segfault when given an unknown package name
parent
a841d6b259
commit
e7f8d71d2b
|
@ -218,6 +218,7 @@ static void mark_error(struct fetch_ctx *ctx, const char *match, struct apk_name
|
||||||
|
|
||||||
static void mark_name_flags(struct apk_database *db, const char *match, struct apk_name *name, void *ctx)
|
static void mark_name_flags(struct apk_database *db, const char *match, struct apk_name *name, void *ctx)
|
||||||
{
|
{
|
||||||
|
if (!IS_ERR_OR_NULL(name))
|
||||||
name->auto_select_virtual = 1;
|
name->auto_select_virtual = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue