mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtstyle: Coverity 88110
This commit is contained in:
parent
43a31a81fa
commit
25e371dbe2
1 changed files with 6 additions and 2 deletions
|
@ -239,7 +239,7 @@ GetUserIMSelectionFile(
|
|||
)
|
||||
{
|
||||
int ret = NoError;
|
||||
FILE *fp;
|
||||
FILE *fp = NULL;
|
||||
|
||||
ret = GetUserFileName(env);
|
||||
|
||||
|
@ -253,7 +253,11 @@ GetUserIMSelectionFile(
|
|||
|
||||
start_tag_line(env->file_sel->fname);
|
||||
ret = ReadImSelectionFile(env->file_sel, fp);
|
||||
|
||||
|
||||
if(fp) {
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue