summaryrefslogtreecommitdiffstats
path: root/liblog
diff options
context:
space:
mode:
Diffstat (limited to 'liblog')
-rw-r--r--liblog/include/log/log_read.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/liblog/include/log/log_read.h b/liblog/include/log/log_read.h
index d118563be..93b9d4e93 100644
--- a/liblog/include/log/log_read.h
+++ b/liblog/include/log/log_read.h
@@ -184,7 +184,7 @@ struct log_msg {
184 hdr_size = sizeof(entry_v1); 184 hdr_size = sizeof(entry_v1);
185 } 185 }
186 if ((hdr_size < sizeof(entry_v1)) || (hdr_size > sizeof(entry))) { 186 if ((hdr_size < sizeof(entry_v1)) || (hdr_size > sizeof(entry))) {
187 return NULL; 187 return nullptr;
188 } 188 }
189 return reinterpret_cast<char*>(buf) + hdr_size; 189 return reinterpret_cast<char*>(buf) + hdr_size;
190 } 190 }