Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
triggers: use xmalloc.h functions
Baptiste Daroussin committed 4 years ago
commit 514fde8804ea8d494312f0d25518971ef5c73f10
parent 438bcc6
1 file changed +1 -1
modified libpkg/triggers.c
@@ -631,7 +631,7 @@ exec_deferred(int dfd, const char *name)
			walk++; /* skip the space */
			if (line[linelen -1] == '\n')
				line[linelen -1] = '\0';
-
			char *s = strdup(walk);
+
			char *s = xstrdup(walk);
			pkghash_safe_add(args, s, s, free);
		}
		if (script != NULL)