Remove extra comma from the json output

related to #412
This commit is contained in:
David Maciejak 2019-06-15 16:26:31 +08:00 committed by GitHub
commit c2286ffb00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4084,10 +4084,6 @@ int main(int argc, char *argv[]) {
strncat(json_error,tmp_str,STRMAX);
strncat(json_error,"\"",STRMAX);
error = 1;
if (*json_error) {
strncat(json_error,", ", STRMAX);
}
error = 1;
}
if (error) {
snprintf(tmp_str, STRMAX, "[ERROR] %d target%s did not complete", j, j < 1 ? "" : "s");