aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/win32/erl.c
diff options
context:
space:
mode:
authorJani Hakala <[email protected]>2014-09-28 15:54:56 +0300
committerJani Hakala <[email protected]>2014-09-29 00:35:42 +0300
commitc9b40bf1c30d60f76b6954c0d35bee82912531a0 (patch)
tree2d69dca05a135bfc15a5cc860ab2b3e2ffef1752 /erts/etc/win32/erl.c
parent2397a14d1113bc2d334dee908269cf3b63c46314 (diff)
downloadotp-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/etc/win32/erl.c')
-rw-r--r--erts/etc/win32/erl.c2
1 files changed, 1 insertions, 1 deletions
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()");
}