Skip to content

Commit b3ed2c4

Browse files
committed
fix pclose before fgets in init_menu_system
Signed-off-by: Vincent-FK <[email protected]>
1 parent b6af0b2 commit b3ed2c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drivers/dingux-sdl/menu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ void init_menu_system_values(){
377377
volume_percentage = 50; ///wrong value: setting default to 50
378378
}
379379
else{
380-
pclose(fp);
381380
fgets(res, sizeof(res)-1, fp);
381+
pclose(fp);
382382

383383
/// Check if Volume is a number (at least the first char)
384384
if(res[0] < '0' || res[0] > '9'){

0 commit comments

Comments
 (0)