summaryrefslogtreecommitdiff
path: root/src/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fetch.c')
-rw-r--r--src/fetch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fetch.c b/src/fetch.c
index 48848af..81d4449 100644
--- a/src/fetch.c
+++ b/src/fetch.c
@@ -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)