Signed-off-by: Jakub Filak <[email protected]>
---
 src/plugins/rhbz.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/plugins/rhbz.c b/src/plugins/rhbz.c
index 9c9ea34..09de3d6 100644
--- a/src/plugins/rhbz.c
+++ b/src/plugins/rhbz.c
@@ -841,6 +841,13 @@ int rhbz_attach_files(struct abrt_xmlrpc *ax, const char 
*bug_id,
         if (is_in_string_list(name, (char**)g_not_attached_files))
             continue;
 
+        /* Skip empty files */
+        if (strlen(value->content) == 0)
+        {
+            VERB2 log("Skipping empty file '%s'", name);
+            continue;
+        }
+
         if (value->flags & CD_FLAG_TXT)
         {
             const char *content = value->content;
-- 
1.7.11.2

Reply via email to