Skip to content

Commit

Permalink
Fix: sheet call back value is null
Browse files Browse the repository at this point in the history
  • Loading branch information
viest committed Nov 21, 2019
1 parent eb6714e commit 1892c05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ int sheet_cell_callback (size_t row, size_t col, const char *value, void *callba

ZVAL_LONG(&args[0], (row - 1));
ZVAL_LONG(&args[1], (col - 1));
ZVAL_NULL(&args[2]);

if (value == NULL) {
ZVAL_NULL(&args[2]);
goto CALL_USER_FUNCTION;
}

Expand Down Expand Up @@ -319,7 +319,6 @@ int sheet_cell_callback (size_t row, size_t col, const char *value, void *callba
}
}

ZVAL_NULL(&args[2]);
data_to_custom_type(value, _type, &args[2]);
}

Expand Down

0 comments on commit 1892c05

Please sign in to comment.