ref: da7d3d9bad342dfa8c561b38ea9581e835b8d2f1
parent: 977768ac880deaa63c43998a84d0b0f68651f67e
author: Martin Storsjö <martin@martin.st>
date: Tue Jan 28 06:33:34 EST 2014
Remove an unused and unnecessary string length calculation This is unused since 771ff739b.
--- a/codec/encoder/core/src/utils.cpp
+++ b/codec/encoder/core/src/utils.cpp
@@ -264,15 +264,11 @@
#ifdef ENABLE_TRACE_FILE
sWelsEncCtx* pEncCtx = (sWelsEncCtx*)pCtx;
if (wlog == WelsLogDefault) {
- int32_t len = 0;
if (pEncCtx->pFileLog != NULL) {
WelsFclose (pEncCtx->pFileLog);
pEncCtx->pFileLog = NULL;
}
pEncCtx->uiSizeLog = 0;
- len = STRNLEN (pCurPath, MAX_FNAME_LEN - 1); // confirmed_safe_unsafe_usage
- if (len >= MAX_FNAME_LEN)
- return;
pEncCtx->pFileLog = WelsFopen ("wels_encoder_trace.txt", "wt+"); // confirmed_safe_unsafe_usage
}
#endif//ENABLE_TRACE_FILE