From fe3cd46d322d970160f3b48f6b7e678c89228cad Mon Sep 17 00:00:00 2001 From: Yoni Fogel Date: Thu, 12 Jun 2008 20:46:09 +0000 Subject: [PATCH] Closes #914 git-svn-id: file:///svn/tokudb@4502 c7de825b-a66e-492c-adef-691d508d4ae1 --- newbrt/ybt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newbrt/ybt.c b/newbrt/ybt.c index b32b8dd319c..1c6295a5295 100644 --- a/newbrt/ybt.c +++ b/newbrt/ybt.c @@ -30,7 +30,7 @@ static inline int dbt_set_preprocess(DBT* ybt, ITEMLEN len, void** staticptrp, v if (ybt->flags==0 && staticptrp==NULL) { r = -1; goto cleanup; } if (!input_disposable) { *tmp_data = toku_malloc(len); - if (!*tmp_data && len > 0) { r = errno; goto cleanup; } + if (!*tmp_data) { r = errno; goto cleanup; } } } else { r = EINVAL; goto cleanup; }