mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #1155] [MERGED] [FIX] Initialize fatal_ftn before first use #1941
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1155
Author: @MarcusGaiusPompey
Created: 12/22/2019
Status: ✅ Merged
Merged: 12/27/2019
Merged by: @cfsmp3
Base:
master← Head:fatal_ftn_init📝 Commits (2)
da37316Initialize fatal_ftn before first usea88f59cMerge branch 'master' into fatal_ftn_init📊 Changes
2 files changed (+8 additions, -7 deletions)
View changed files
📝
docs/CHANGES.TXT(+1 -0)📝
src/lib_ccx/lib_ccx.c(+7 -7)📄 Description
Please prefix your pull request with one of the following: [FEATURE] [FIX] [IMPROVEMENT].
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
In
init_libraries, if the first call tomallocto initialise thelib_ccx_ctxstruct fails,fatal_ftnis called. However, the first definition offatal_ftnoccurs if the call succeeds, meaning thatfatal_ftnis undefined at the first possible call.By initialising the logging functions before any other code is run, meaning that
fatal_ftnshould always be defined when called.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.