diff options
| author | christos <christos@NetBSD.org> | 2015-01-16 20:16:36 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2015-01-16 20:16:36 +0000 |
| commit | f0ca1b6fbafffbef7e9ca176e86a09dfeb34dc7f (patch) | |
| tree | 90a7051e326c9356bf7981ade55a12e507af6811 /external/apache2 | |
| parent | 692ac6ba038ad006a8ed0f5ca4a8230c70a33a91 (diff) | |
use calloc, remove cast.
Diffstat (limited to 'external/apache2')
| -rwxr-xr-x | external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c b/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c index 1059c83cf15..e6234f84d05 100755 --- a/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c +++ b/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c @@ -221,7 +221,7 @@ struct ifi_info *get_ifi_info(int family, int doaliases) lastlen = 0; len = 100 * sizeof(struct ifreq); /* initial buffer size guess */ for ( ; ; ) { - buf = (char*)malloc(len); + buf = calloc(len, 1); if (buf == NULL) { goto gotError; } |
