提交 80515fdf 编写于 作者: N Nikhil Kak

fix coverity issue #11476 about Uninitialized scalar variable.

上级 2761202a
......@@ -223,6 +223,7 @@ SvecType *classify_document(char **features, int num_features, char **document,
if (document[i] != NULL)
{
item.key = document[i];
item.data = NULL;
if ((found_item = hsearch(item,FIND)) != NULL) {
/* Item is in the table */
histogram[*((int *)found_item->data)]++; //Increment the count at the appropriate ordinal
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册