From c9b40bf1c30d60f76b6954c0d35bee82912531a0 Mon Sep 17 00:00:00 2001 From: Jani Hakala Date: Sun, 28 Sep 2014 15:54:56 +0300 Subject: Fix if-clauses that make code to be unreachable Fix two cases where use of assigment operator instead of comparison operator causes if-clauses to be always false and code to be unreachable. --- erts/etc/win32/Install.c | 2 +- erts/etc/win32/erl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'erts/etc') diff --git a/erts/etc/win32/Install.c b/erts/etc/win32/Install.c index 500fd166f8..9d85d642ab 100644 --- a/erts/etc/win32/Install.c +++ b/erts/etc/win32/Install.c @@ -80,7 +80,7 @@ int wmain(int argc, wchar_t **argv) } } if (root == NULL) { - if (module = NULL) { + if (module == NULL) { fprintf(stderr, "Cannot GetModuleHandle()\n"); exit(1); } diff --git a/erts/etc/win32/erl.c b/erts/etc/win32/erl.c index 1d116bf36e..772b668586 100644 --- a/erts/etc/win32/erl.c +++ b/erts/etc/win32/erl.c @@ -264,7 +264,7 @@ static void get_parameters(void) int len; - if (module = NULL) { + if (module == NULL) { error("Cannot GetModuleHandle()"); } -- cgit v1.2.3