From 9abc01ff0cfa94f1fe8ee19bbb8c52ff735ef7fb Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 2 Nov 2009 18:59:48 +0100 Subject: make_description_xxx: do not report empty fields Signed-off-by: Denys Vlasenko --- lib/Utils/make_descr.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/Utils/make_descr.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 += ": "; -- cgit