Explorar o código

Fix: sheet call back value is null

viest %!s(int64=5) %!d(string=hai) anos
pai
achega
1892c050a1
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      kernel/read.c

+ 1 - 2
kernel/read.c

@@ -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;
     }
 
@@ -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]);
     }