From 024c4cc75ddd748f2ad7784f632209d7636132de Mon Sep 17 00:00:00 2001 From: "Daniel T. Borelli" Date: Tue, 21 Jul 2020 21:15:51 -0300 Subject: [PATCH] bin/xbps-create: fix incorrect assert variable Closes: #309 [via git-merge-pr] --- bin/xbps-create/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-create/main.c b/bin/xbps-create/main.c index 1ff0640c..6e148859 100644 --- a/bin/xbps-create/main.c +++ b/bin/xbps-create/main.c @@ -398,7 +398,7 @@ ftw_cb(const char *fpath, const struct stat *sb, const struct dirent *dir UNUSED p3 = strdup(p+strlen(p2)); - assert(p2); + assert(p3); xe->target = xbps_sanitize_path(p3); assert(xe->target); free(p3);