summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 496ca2b)
raw | patch | inline | side by side (parent: 496ca2b)
author | Florian Forster <octo@collectd.org> | |
Sat, 6 Aug 2016 19:21:56 +0000 (21:21 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 6 Aug 2016 19:21:59 +0000 (21:21 +0200) |
It returns the number of bytes, not zero, on success. This fixes a
bug introduced in 496ca2b758344bc6372ab0adf98ad8050f69b25a.
bug introduced in 496ca2b758344bc6372ab0adf98ad8050f69b25a.
src/utils_db_query.c | patch | blob | history |
diff --git a/src/utils_db_query.c b/src/utils_db_query.c
index 9a16873922290730218e40a1ecfe17f8a2592f02..5fbdfd13644febb4044bb4772e17a326c7120d40 100644 (file)
--- a/src/utils_db_query.c
+++ b/src/utils_db_query.c
{
int status = strjoin (vl.type_instance, sizeof (vl.type_instance),
r_area->instances_buffer, r->instances_num, "-");
- if (status != 0)
+ if (status < 0)
{
ERROR ("udb_result_submit: creating type_instance failed with status %d.",
status);
int status = strjoin (tmp, sizeof (tmp), r_area->instances_buffer,
r->instances_num, "-");
- if (status != 0)
+ if (status < 0)
{
ERROR ("udb_result_submit: creating type_instance failed with status %d.",
status);