spv-light-decoder: Avoid GCC 11.x warning in decode_spvlb_halign().
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 13 Mar 2022 18:30:49 +0000 (11:30 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 13 Mar 2022 18:30:49 +0000 (11:30 -0700)
It seems to be wrong, but GCC can't tell and it's hard to blame it.

src/output/spv/spv-light-decoder.c

index f1f3dba9607dc68599ceb4a3a755bd471a5754d0..f8c4f618b2edb0bb184af82940328e2512b67b6f 100644 (file)
@@ -170,6 +170,7 @@ decode_spvlb_halign (uint32_t in, enum table_halign *halignp)
       return NULL;
 
     default:
+      *halignp = 0;
       return xasprintf ("bad cell style halign %"PRIu32, in);
     }
 }