mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-11 08:38:15 +03:00
Fix use-of-uninitialized-value in save_savePartial
This commit is contained in:
+2
-4
@@ -515,11 +515,9 @@ int save_loadPartial(int no, struct VarRef *vref, int cnt) {
|
||||
|
||||
/* データの一部セーブ */
|
||||
int save_savePartial(int no, struct VarRef *vref, int cnt) {
|
||||
if (no >= SAVE_MAXNUMBER) {
|
||||
if (no >= SAVE_MAXNUMBER || !varPage[vref->page].saveflag)
|
||||
return SAVE_SAVEERR;
|
||||
}
|
||||
if (!varPage[vref->page].saveflag)
|
||||
goto errexit;
|
||||
|
||||
cnt = min(cnt, v_sliceSize(vref));
|
||||
int *var = v_resolveRef(vref);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user