diff options
| -rw-r--r-- | lib/Utils/Makefile.am | 2 | ||||
| -rw-r--r-- | lib/Utils/make_descr.cpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/Utils/Makefile.am b/lib/Utils/Makefile.am index 88df68f..68c925f 100644 --- a/lib/Utils/Makefile.am +++ b/lib/Utils/Makefile.am @@ -3,7 +3,6 @@ lib_LTLIBRARIES = libABRTUtils.la # Not used just yet: # time.cpp # xconnect.cpp -# skip_whitespace.cpp libABRTUtils_la_SOURCES = \ xfuncs.cpp \ @@ -11,6 +10,7 @@ libABRTUtils_la_SOURCES = \ read_write.cpp \ logging.cpp \ copyfd.cpp \ + skip_whitespace.cpp \ CrashTypesSocket.cpp \ DebugDump.h DebugDump.cpp \ CommLayerInner.h CommLayerInner.cpp \ diff --git a/lib/Utils/make_descr.cpp b/lib/Utils/make_descr.cpp index ee37291..1352149 100644 --- a/lib/Utils/make_descr.cpp +++ b/lib/Utils/make_descr.cpp @@ -16,6 +16,11 @@ static void add_content(bool &was_multiline, string& description, const char *he if (strchr(content, '\n') == NULL) { + if (skip_whitespace(content)[0] == '\0') + { + /* empty, dont report at all */ + return; + } /* one string value, like OS release */ description += header; description += ": "; |
