Fix compiler warning in setup_translation().
authorKevin O'Connor <kevin@koconnor.net>
Tue, 10 Nov 2009 00:15:50 +0000 (19:15 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 10 Nov 2009 00:15:50 +0000 (19:15 -0500)
Assign 'desc' just to silence compiler warning.

src/block.c

index 0a65ae698feac8e49285220786f0a1c942020b3a..d36ad3637cf2ccea39eb241b591913470c1cfb1f 100644 (file)
@@ -86,7 +86,7 @@ setup_translation(struct drive_s *drive_g)
     u16 cylinders = GET_GLOBAL(drive_g->pchs.cylinders);
     u16 spt = GET_GLOBAL(drive_g->pchs.spt);
     u64 sectors = GET_GLOBAL(drive_g->sectors);
-    const char *desc;
+    const char *desc = NULL;
 
     switch (translation) {
     default: