diff options
author | Timotej S <6674623+underhood@users.noreply.github.com> | 2023-10-25 16:54:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 16:54:24 +0200 |
commit | 88a02e9e22798d2b0390723df9a5e3c62268f3a2 (patch) | |
tree | 17bf3c75bc803f92a1a15abba8d06381dc242363 /collectors/plugins.d/pluginsd_parser.c | |
parent | a41bf577743b69ebce331e6a5655a8ebb5741f8b (diff) |
DYNCFG fix REPORT_JOB_STATUS streaming (#16272)
* handle empty reason string as no reason
* properly handle missing and empty reason strings
Diffstat (limited to 'collectors/plugins.d/pluginsd_parser.c')
-rw-r--r-- | collectors/plugins.d/pluginsd_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/plugins.d/pluginsd_parser.c b/collectors/plugins.d/pluginsd_parser.c index 141fa997d9..f6098cef55 100644 --- a/collectors/plugins.d/pluginsd_parser.c +++ b/collectors/plugins.d/pluginsd_parser.c @@ -2512,7 +2512,7 @@ static inline PARSER_RC pluginsd_job_status_common(char **words, size_t num_word return PLUGINSD_DISABLE_PLUGIN(parser, PLUGINSD_KEYWORD_REPORT_JOB_STATUS, "unknown job status"); char *message = NULL; - if (num_words == 5) + if (num_words == 5 && strlen(words[4]) > 0) message = words[4]; const DICTIONARY_ITEM *plugin_item; |