diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2018-10-24 06:01:04 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2018-10-24 06:01:04 +0000 |
commit | 9c43bb9a6fe71363ff1011073a34d18335e60eb5 (patch) | |
tree | 2044991f94596cdbefa5bd6533863c4a1969a62f /bin/csh/dir.c | |
parent | 2226ccdfa41b77b87a336ffea5306e124282b294 (diff) |
Fix some minor issues found by coverity.
OK millert@ and miko@
Diffstat (limited to 'bin/csh/dir.c')
-rw-r--r-- | bin/csh/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/csh/dir.c b/bin/csh/dir.c index 8a4caaf319b..16cec8ecfc1 100644 --- a/bin/csh/dir.c +++ b/bin/csh/dir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dir.c,v 1.22 2018/09/19 18:55:33 millert Exp $ */ +/* $OpenBSD: dir.c,v 1.23 2018/10/24 06:01:03 martijn Exp $ */ /* $NetBSD: dir.c,v 1.9 1995/03/21 09:02:42 cgd Exp $ */ /*- @@ -132,7 +132,7 @@ dset(Char *dp) * Don't call set() directly cause if the directory contains ` or * other junk characters glob will fail. */ - Char **vec = xreallocarray(NULL, 2, sizeof(Char **)); + Char **vec = xreallocarray(NULL, 2, sizeof(*vec)); vec[0] = Strsave(dp); vec[1] = 0; |