Port make-fingerprint to LeakSanitizer
* lib-src/make-fingerprint.c (buf): Now static, to pacify LeakSanitizer.
This commit is contained in:
parent
515f57826f
commit
3f90aa7eec
1 changed files with 4 additions and 1 deletions
|
@ -57,6 +57,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#endif
|
||||
#endif /* WINDOWSNT */
|
||||
|
||||
/* Static (instead of being local to 'main') to pacify LeakSanitizer. */
|
||||
static char *buf;
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
|
@ -111,7 +114,7 @@ main (int argc, char **argv)
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
char *buf = malloc (st.st_size + 1);
|
||||
buf = malloc (st.st_size + 1);
|
||||
if (!buf)
|
||||
{
|
||||
perror ("malloc");
|
||||
|
|
Loading…
Add table
Reference in a new issue