summaryrefslogtreecommitdiff
path: root/fmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'fmt.c')
-rw-r--r--fmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fmt.c b/fmt.c
index dac8af6..ab4e28c 100644
--- a/fmt.c
+++ b/fmt.c
@@ -1316,7 +1316,7 @@ fmt_sscanf_state_produce_char(struct fmt_sscanf_state *state)
fmt_sscanf_state_restore_string(state);
}
- if (dest != NULL) {
+ if ((dest != NULL) && (i != 0)) {
fmt_sscanf_state_report_conv(state);
}