set result to 0 in switch default branch

pull/37/head
yuqing 2018-08-20 16:39:28 +08:00
parent 27e2216a77
commit 15526c7277
1 changed files with 3 additions and 0 deletions

View File

@ -923,6 +923,9 @@ static int iniAddAnnotation(char *params)
result = ((init_annotation_func3)init_func)(&annotation,
cols[2], cols[3], cols[4]);
break;
default:
result = 0;
break;
}
if (result != 0)