]> git.cworth.org Git - fips/commitdiff
Fix uninitialized-value compile warning.
authorEric Anholt <eric@anholt.net>
Tue, 12 Nov 2013 02:33:53 +0000 (18:33 -0800)
committerCarl Worth <cworth@cworth.org>
Tue, 12 Nov 2013 18:20:04 +0000 (10:20 -0800)
metrics.c

index e37618665d508cf67bd9614bae65665f229bccd0..1c8a973aec28e7cc23400270b298f693d1232993 100644 (file)
--- a/metrics.c
+++ b/metrics.c
@@ -409,6 +409,7 @@ accumulate_program_metrics (metrics_t *metrics, metrics_op_t op,
        {                                                               \
                fprintf (stderr, "Unexpected end-of-buffer while "      \
                         "parsing results\n");                          \
+               value = 0.0;                                            \
                break;                                                  \
        }                                                               \
        (var) = *((typeof(var) *) p);                                   \