Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
trap: fix digest variable initialization (coverity)
  • Loading branch information
perexg committed Oct 3, 2014
1 parent 7c2a37a commit e136a37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/trap.c
Expand Up @@ -245,7 +245,8 @@ trap_init(const char *ver)
self[0] = 0;
else
self[r] = 0;


memset(digest, 0, sizeof(digest));
if((fd = open("/proc/self/exe", O_RDONLY)) != -1) {
struct stat st;
if(!fstat(fd, &st)) {
Expand Down

0 comments on commit e136a37

Please sign in to comment.