diff options
author | Jani Hakala <[email protected]> | 2014-09-28 15:54:56 +0300 |
---|---|---|
committer | Jani Hakala <[email protected]> | 2014-09-29 00:35:42 +0300 |
commit | c9b40bf1c30d60f76b6954c0d35bee82912531a0 (patch) | |
tree | 2d69dca05a135bfc15a5cc860ab2b3e2ffef1752 /erts | |
parent | 2397a14d1113bc2d334dee908269cf3b63c46314 (diff) | |
download | otp-c9b40bf1c30d60f76b6954c0d35bee82912531a0.tar.gz otp-c9b40bf1c30d60f76b6954c0d35bee82912531a0.tar.bz2 otp-c9b40bf1c30d60f76b6954c0d35bee82912531a0.zip |
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.
Diffstat (limited to 'erts')
-rw-r--r-- | erts/etc/win32/Install.c | 2 | ||||
-rw-r--r-- | erts/etc/win32/erl.c | 2 |
2 files changed, 2 insertions, 2 deletions
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()"); } |