diff options
Diffstat (limited to 'sbin/kldconfig')
-rw-r--r-- | sbin/kldconfig/kldconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/kldconfig/kldconfig.c b/sbin/kldconfig/kldconfig.c index 6da8d53..403251d 100644 --- a/sbin/kldconfig/kldconfig.c +++ b/sbin/kldconfig/kldconfig.c @@ -270,7 +270,7 @@ parsepath(struct pathhead *pathq, char *path, int uniq) while ((p = strsep(&path, ";")) != NULL) if (!uniq) { - if (((pe = malloc(sizeof(pe))) == NULL) || + if (((pe = malloc(sizeof(*pe))) == NULL) || ((pe->path = strdup(p)) == NULL)) { errno = ENOMEM; err(1, "allocating path element"); |