summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjirka-h <hladky.jiri@gmail.com>2019-08-19 23:41:30 +0200
committerGitHub <noreply@github.com>2019-08-19 23:41:30 +0200
commit56f847ff55a99276ab5fed5ee74cdce64b3c7562 (patch)
tree54b4a4e4fea78e7bf364fdce8eaf29c0f54e2976
parentFixed built issue on Cygwin (diff)
parentminimize diff (diff)
downloadhaveged-56f847ff55a99276ab5fed5ee74cdce64b3c7562.tar.xz
haveged-56f847ff55a99276ab5fed5ee74cdce64b3c7562.zip
Merge pull request #14 from brada4/master
fix segv at start
-rw-r--r--src/havege.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/havege.c b/src/havege.c
index 43cac70..3aeaf20 100644
--- a/src/havege.c
+++ b/src/havege.c
@@ -197,7 +197,7 @@ void havege_destroy( /* RETURN: none */
free(temp);
}
#ifdef ONLINE_TESTS_ENABLE
- if (0 != (temp=hptr->testData)) {
+ else if (0 != (temp=hptr->testData)) {
double *g = ((procShared *)temp)->G;
hptr->testData = 0;
if (0 != g)