Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Always use the type and not the variable with sizeof()!
jlaffaye committed 15 years ago
commit 9a3358bd729f5c41908098d4b90b8afddf287019
parent 565657fbbdbc62ce7d04d395098513ca6d2c8d80
1 file changed +1 -1
modified libpkg/pkg_error.c
@@ -95,7 +95,7 @@ pkg_error_init(void)
	e = pthread_getspecific(pkg_error_key);

	if (e == NULL) {
-
		e = malloc(sizeof(e));
+
		e = malloc(sizeof(struct pkg_error));

		if (e == NULL)
			err(1, "malloc()");