Skip to content

Commit

Permalink
Fix error handling in v/fprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Dec 27, 2023
1 parent bdc79ee commit b65cad2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parseAPI/src/debug_parse.C
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ int Dyninst::ParseAPI::parsing_printf_int(const char *format, ...)
#pragma omp critical
{
v = fprintf(stderr, "[thread %d] ", id);
v &= vfprintf(stderr, format, va);
if(v >= 0) {
v = vfprintf(stderr, format, va);
}
fflush(stderr);
}
return v;
Expand Down

0 comments on commit b65cad2

Please sign in to comment.