aboutsummaryrefslogtreecommitdiffstats
path: root/src/snprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/snprintf.c')
-rw-r--r--src/snprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/snprintf.c b/src/snprintf.c
index 1d349fb..70130f4 100644
--- a/src/snprintf.c
+++ b/src/snprintf.c
@@ -594,7 +594,9 @@ int portable_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap) {
char fmt_spec = '\0';
/* current conversion specifier character */
+#if defined(PREFER_PORTABLE_SNPRINTF)
str_arg = credits;/* just to make compiler happy (defined but not used)*/
+#endif
str_arg = NULL;
starting_p = p; p++; /* skip '%' */
/* parse flags */