shithub: libdvdcss

Download patch

ref: 275fdb5bb53c5aad402036ffa9744ad6bca9f13f
parent: 3e39640f95b848bc5ec3836464a5613e23efd231
author: Diego Biurrun <diego@biurrun.de>
date: Thu Nov 6 10:14:35 EST 2014

dvd_region: Intentionally discard the return value from getchar()

This fixes CID 75512.

--- a/test/dvd_region.c
+++ b/test/dvd_region.c
@@ -143,7 +143,8 @@
   }
   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);