From 7cf7d62929f337421790ffc36a7b749c83bd8899 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 4 May 2018 17:57:37 +0200 Subject: [PATCH] Fix CID 1390821 (Uninitialized variable) It was introduced by my latest commit 21d5ce57175e35e9df514e81f9c584f0bb2910ad. Signed-off-by: Stefan Weil --- src/lstm/static_shape.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lstm/static_shape.h b/src/lstm/static_shape.h index 9ca35255..78b31a15 100644 --- a/src/lstm/static_shape.h +++ b/src/lstm/static_shape.h @@ -60,7 +60,7 @@ class StaticShape { } bool DeSerialize(TFile *fp) { - int32_t tmp; + int32_t tmp = LT_NONE; bool result = fp->FReadEndian(&batch_, sizeof(batch_), 1) == 1 && fp->FReadEndian(&height_, sizeof(height_), 1) == 1 &&