Browse Source

UI: Add missing NULL check for skipUpdateVer

(cherry picked from commit 5ebd3ee6d38fe0b41edc89b885b8d9ecc80b03fc)
Rodney 2 years ago
parent
commit
9f6f9109d9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      UI/update/win-update.cpp

+ 2 - 1
UI/update/win-update.cpp

@@ -265,7 +265,8 @@ try {
 
 	const char *skipUpdateVer = config_get_string(
 		GetGlobalConfig(), "General", "SkipUpdateVersion");
-	if (!manualUpdate && updateVer == skipUpdateVer && !repairMode)
+	if (!manualUpdate && !repairMode && skipUpdateVer &&
+	    updateVer == skipUpdateVer)
 		return;
 
 	/* ----------------------------------- *