Commit 275fdb5b authored by Diego Biurrun's avatar Diego Biurrun

dvd_region: Intentionally discard the return value from getchar()

This fixes CID 75512.
parent 3e39640f
......@@ -143,7 +143,8 @@ static int set_region(int fd, int region)
}
printf("Setting drive region can only be done a finite " \
"number of times, press Ctrl-C now to cancel!\n");
getchar();
/* Discard returned character, just wait for any key as confirmation. */
(void) getchar();
region_mask = 0xff & ~(1 << (region - 1));
printf("Setting region to %d( %x)\n", region, region_mask);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment