From f007bd3cf8cacd75287781c1bb37fe4167c79cba Mon Sep 17 00:00:00 2001 From: John Grossman Date: Tue, 31 Jul 2012 16:57:18 -0700 Subject: [PATCH] common_time: Fix a small build warning. (cherry picked from commit f19c7a64a5c35dcc684708fc56e5cbd2a4997c4b) > common_time: Fix a small build warning. > > Change-Id: I9a3652c8191ec86089117dbe6c16ff8612a911a3 > Signed-off-by: John Grossman Change-Id: I9d04f457d8a7f45249c86c4ad69bfd71fdd77245 Signed-off-by: John Grossman --- services/common_time/common_time_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/common_time/common_time_server.cpp b/services/common_time/common_time_server.cpp index 16be8f1ce00c4..17f99b90b9346 100644 --- a/services/common_time/common_time_server.cpp +++ b/services/common_time/common_time_server.cpp @@ -584,7 +584,7 @@ bool CommonTimeServer::arbitrateMaster( static void hexDumpToString(const uint8_t* src, size_t src_len, char* dst, size_t dst_len) { - size_t offset; + size_t offset = 0; size_t i; for (i = 0; (i < src_len) && (offset < dst_len); ++i) {