From: jsg Date: Fri, 22 May 2015 13:48:25 +0000 (+0000) Subject: be pedantic with sizeof use X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=590eb4f1d0c510a737f422bd60017a6cfb8e71f9;p=openbsd be pedantic with sizeof use no change in behaviour as sizeof(char **) is the same as sizeof(char *) ok otto@ guenther@ --- 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 @@ -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);