Commit e7f8d71d authored by William Pitcock's avatar William Pitcock

fetch: don't segfault when given an unknown package name

parent a841d6b2
......@@ -218,7 +218,8 @@ 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)
{
name->auto_select_virtual = 1;
if (!IS_ERR_OR_NULL(name))
name->auto_select_virtual = 1;
}
static void mark_name_recursive(struct apk_database *db, const char *match, struct apk_name *name, void *ctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment