Explorar o código

UI: Add missing NULL check for skipUpdateVer

(cherry picked from commit 5ebd3ee6d38fe0b41edc89b885b8d9ecc80b03fc)
Rodney %!s(int64=2) %!d(string=hai) anos
pai
achega
9f6f9109d9
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;
 
 	/* ----------------------------------- *