aboutsummaryrefslogtreecommitdiffstats
path: root/erts
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
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')
-rw-r--r--erts/etc/win32/Install.c2
-rw-r--r--erts/etc/win32/erl.c2
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()");
}