Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sas/readstat_sas7bdat_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ static readstat_variable_t *sas7bdat_init_variable(sas7bdat_ctx_t *ctx, int i,
goto cleanup;
}
size_t len = strlen(variable->format);
if (len && ctx->col_info[i].format_width) {
if ((len && ctx->col_info[i].format_width) || (len == 0 && ctx->col_info[i].format_width)) {
Comment thread
belegdol marked this conversation as resolved.
Outdated
len += snprintf(variable->format + len, sizeof(variable->format) - len,
"%d", ctx->col_info[i].format_width);
}
Expand Down
Loading