Skip to content

Commit

Permalink
Fix: null in cell callback
Browse files Browse the repository at this point in the history
  • Loading branch information
viest committed Jun 16, 2020
1 parent e59fc8f commit d20e1a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,11 @@ int sheet_row_callback (size_t row, size_t max_col, void* callback_data)
/* {{{ */
int sheet_cell_callback (size_t row, size_t col, const char *value, void *callback_data)
{
size_t _value_length = strlen(value);
size_t _value_length = 0;

if (value != NULL) {
_value_length = strlen(value);
}

if (callback_data == NULL) {
return FAILURE;
Expand Down

0 comments on commit d20e1a1

Please sign in to comment.