Mercurial > dropbear
comparison dbhelpers.c @ 1575:e75dab5bec71
some linting after fuzz merge (#60)
* fix prototype
* remove extra comma
* use m_free after m_strdup
author | François Perrad <francois.perrad@gadz.org> |
---|---|
date | Sat, 03 Mar 2018 04:06:45 +0100 |
parents | 119a459b00d0 |
children |
comparison
equal
deleted
inserted
replaced
1572:56ec2214144f | 1575:e75dab5bec71 |
---|---|
7 #if defined(HAVE_MEMSET_S) | 7 #if defined(HAVE_MEMSET_S) |
8 memset_s(data, len, 0x0, len); | 8 memset_s(data, len, 0x0, len); |
9 #elif defined(HAVE_EXPLICIT_BZERO) | 9 #elif defined(HAVE_EXPLICIT_BZERO) |
10 explicit_bzero(data, len); | 10 explicit_bzero(data, len); |
11 #else | 11 #else |
12 /* This must be volatile to avoid compiler optimisation */ | |
12 volatile void *p = data; | 13 volatile void *p = data; |
13 memset((void*)p, 0x0, len); | 14 memset((void*)p, 0x0, len); |
14 #endif | 15 #endif |
15 } | 16 } |
16 | 17 |
17 | 18 |