Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialized local variable as NULL #63

Closed
wants to merge 1 commit into from
Closed

Initialized local variable as NULL #63

wants to merge 1 commit into from

Conversation

hedone21
Copy link

@hedone21 hedone21 commented Jul 3, 2018

Uninitialized local variable has garbage data. It can cause a problem when
ibus-hangul fails to load hanja-table. So this commit initializes local
variable "list" as NULL.

일반적으로 symbol.txt 로딩에 성공할 것이기 때문에, 대부분의 경우 해당 부분에 문제가 생기지는 않습니다. 하지만, symbol.txt 로딩에 실패할 경우 list가 NULL인지 검사하는 로직이 정상 작동하지 않습니다. 안전하게 list를 선언할 때 NULL로 초기화 하면 좋겠습니다.

감사합니다.

Uninitialized local variable has garbage data. It can cause a problem when
ibus-hangul fails to load hanja-table. So this commit initializes local
variable "list" as NULL.
choehwanjin added a commit that referenced this pull request Jul 13, 2018
Modify "ibus-hangul" to GETTEXT_PACKAGE
Initialized local variable as NULL

#62
#63
@choehwanjin
Copy link
Member

각각 merge 안하고 master를 merge해서 적용했습니다.
고맙습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants