Skip to content

Commit f007bd3

Browse files
johngrojason-simmons
authored andcommitted
common_time: Fix a small build warning.
(cherry picked from commit f19c7a6) > common_time: Fix a small build warning. > > Change-Id: I9a3652c8191ec86089117dbe6c16ff8612a911a3 > Signed-off-by: John Grossman <johngro@google.com> Change-Id: I9d04f457d8a7f45249c86c4ad69bfd71fdd77245 Signed-off-by: John Grossman <johngro@google.com>
1 parent 5017f23 commit f007bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/common_time/common_time_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ bool CommonTimeServer::arbitrateMaster(
584584

585585
static void hexDumpToString(const uint8_t* src, size_t src_len,
586586
char* dst, size_t dst_len) {
587-
size_t offset;
587+
size_t offset = 0;
588588
size_t i;
589589

590590
for (i = 0; (i < src_len) && (offset < dst_len); ++i) {

0 commit comments

Comments
 (0)