Commit a6be22e5 authored by Rich Prohaska's avatar Rich Prohaska

set the data and length to 0 for zero length things. dbt's with malloc flags...

set the data and length to 0 for zero length things. dbt's with malloc flags are unchanged. closes #367

git-svn-id: file:///svn/tokudb@2209 c7de825b-a66e-492c-adef-691d508d4ae1
parent 21136fee
......@@ -39,7 +39,7 @@ int toku_dbt_set_value (DBT *ybt, bytevec val, ITEMLEN vallen, void **staticptrp
if (errno!=0) return errno;
//if (old!=staticptr) printf("%s:%d MALLOC --> %p\n", __FILE__, __LINE__, staticptr);
*staticptrp = staticptr;
ybt->data = staticptr;
ybt->data = vallen > 0 ? staticptr : 0;
}
ybt->size = vallen;
if (ybt->size>0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment