Skip to content

Commit

Permalink
fixed accessing uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeAkinobu committed Sep 24, 2020
1 parent 06529cc commit 4182bf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Empty file modified jclient-perl/jclient.pl
100644 → 100755
Empty file.
8 changes: 6 additions & 2 deletions libjulius/src/search_bestfirst_v1.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,10 @@ scan_word(NODE *now, HTK_Param *param, RecogProcess *r)
}
}
#endif
endt = startt = -1;
if (hmminfo->multipath) {
now->final_g = LOG_ZERO;
}
goto end_of_scan;
}
startt = t;
Expand Down Expand Up @@ -1265,8 +1269,6 @@ scan_word(NODE *now, HTK_Param *param, RecogProcess *r)

if (debug2_flag) jlog("DEBUG: scanned: [%3d-%3d]\n", endt, startt);

end_of_scan:

if (hmminfo->multipath) {
/* 前向きスコアの最終値を計算 (状態 0 から時間 0 への遷移) */
/* compute the total forward score (transition from state 0 to frame 0 */
Expand Down Expand Up @@ -1333,6 +1335,8 @@ scan_word(NODE *now, HTK_Param *param, RecogProcess *r)
}
#endif

end_of_scan:

/* free work area */
free_hmm(whmm);
#ifdef TCD
Expand Down

0 comments on commit 4182bf0

Please sign in to comment.