Module: check_mk
Branch: master
Commit: 9ab2330558e00cf9a642eac3db4ba9de95fef288
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9ab2330558e00c…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Feb 8 15:53:13 2016 +0100
Tiny cleanup.
---
livestatus/src/OffsetStringColumn.cc | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/livestatus/src/OffsetStringColumn.cc b/livestatus/src/OffsetStringColumn.cc
index 7a888a0..e1d1491 100644
--- a/livestatus/src/OffsetStringColumn.cc
+++ b/livestatus/src/OffsetStringColumn.cc
@@ -25,13 +25,10 @@
#include "OffsetStringColumn.h"
const char *OffsetStringColumn::getValue(void *data) {
- if (data == nullptr) {
- return "";
- }
char *p = reinterpret_cast<char *>(shiftPointer(data));
if (p == nullptr) {
return "";
}
const char *s = *reinterpret_cast<char **>(p + _offset);
- return s != nullptr ? s : "";
+ return s == nullptr ? "" : s;
}