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; }