Skip to content

Commit

Permalink
rndr_stats.c: Cosmetic fix
Browse files Browse the repository at this point in the history
Simplify fix for the warning given by gcc -Werror=format-security.

Debian patch: 09-format-warning.patch

Signed-off-by: Sebastien GODARD <[email protected]>
  • Loading branch information
sysstat committed Apr 30, 2017
1 parent 53818d3 commit 5431b6c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions rndr_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,7 @@ static void render(int isdb, char *pre, int rflags, const char *pptxt,
}
}
else {
/*
* Additional NULL parameter below works around
* fatal error when compiled with -Werror=format-security.
*/
printf(txt[isdb], NULL); /* No args */
printf("%s", txt[isdb]);
}
}

Expand Down

0 comments on commit 5431b6c

Please sign in to comment.