diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-05-22 13:48:26 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-05-22 13:48:26 +0000 |
commit | df79964a9f8cb11de46858f3034d23f2e264f4b1 (patch) | |
tree | 8b77d379e6a6e1c9aa38bc28e75614d13ab35a5f | |
parent | 7946ba1117d5c7fd5ea64cc108613823aeed36eb (diff) |
be pedantic with sizeof use
no change in behaviour as sizeof(char **) is the same as sizeof(char *)
ok otto@ guenther@
-rw-r--r-- | libexec/ld.so/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/path.c b/libexec/ld.so/path.c index 4efd85b5485..34a52dbb5a2 100644 --- a/libexec/ld.so/path.c +++ b/libexec/ld.so/path.c @@ -1,4 +1,4 @@ -/* $OpenBSD: path.c,v 1.5 2015/01/22 05:48:17 deraadt Exp $ */ +/* $OpenBSD: path.c,v 1.6 2015/05/22 13:48:25 jsg Exp $ */ /* * Copyright (c) 2013 Kurt Miller <kurt@intricatesoftware.com> @@ -42,7 +42,7 @@ _dl_split_path(const char *searchpath) /* one more for NULL entry */ count++; - retval = _dl_reallocarray(NULL, count, sizeof(retval)); + retval = _dl_reallocarray(NULL, count, sizeof(*retval)); if (retval == NULL) return (NULL); |