projects
/
platform
/
core
/
dotnet
/
launcher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edea365
)
[Coverity-112249] Fixed coverity issue. (NEGATIVE_RETURNS)
56/178056/1
submit/tizen_4.0/20180508.035103
author
j-h.choi
<j-h.choi@samsung.com>
Tue, 8 May 2018 03:22:47 +0000
(12:22 +0900)
committer
JongHeon Choi
<j-h.choi@samsung.com>
Tue, 8 May 2018 03:25:16 +0000
(
03:25
+0000)
Change-Id: I9810f00e9647010ee5a948ef4d07877fd8fbbdbb
NativeLauncher/launcher/dotnet/dotnet_launcher.cc
patch
|
blob
|
history
diff --git
a/NativeLauncher/launcher/dotnet/dotnet_launcher.cc
b/NativeLauncher/launcher/dotnet/dotnet_launcher.cc
index
a6077ea
..
52e0af6
100644
(file)
--- a/
NativeLauncher/launcher/dotnet/dotnet_launcher.cc
+++ b/
NativeLauncher/launcher/dotnet/dotnet_launcher.cc
@@
-338,7
+338,8
@@
int CoreRuntime::launch(const char* appId, const char* root, const char* path, i
int fd2 = open(root, O_DIRECTORY);
dup3(fd2, fd, O_CLOEXEC);
- close(fd2);
+ if (fd2 >= 0)
+ close(fd2);
if (pluginBeforeExecute)
pluginBeforeExecute();