Skip to content

Commit bb8db5b

Browse files
committed
Fix for bug #1048530
1 parent 105742f commit bb8db5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/neword.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,9 @@ int neword( int t_num,
503503
/*EXEC_SQL COMMIT WORK;*/
504504
if( mysql_commit(ctx[t_num]) ) goto sqlerr;
505505
clk1 = clock_gettime(CLOCK_REALTIME, &tbuf1 );
506-
fprintf(ftrx_file,"t_num: %d finish: %lu %lu start: %s\n",t_num, tbuf1.tv_sec, tbuf1.tv_nsec,datetime);
506+
if (ftrx_file) {
507+
fprintf(ftrx_file,"t_num: %d finish: %lu %lu start: %s\n",t_num, tbuf1.tv_sec, tbuf1.tv_nsec,datetime);
508+
}
507509

508510
return (1);
509511

0 commit comments

Comments
 (0)