projects
/
platform
/
core
/
dotnet
/
launcher.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Coverity-112249] Fixed coverity issue. (NEGATIVE_RETURNS)
[platform/core/dotnet/launcher.git]
/
NativeLauncher
/
launcher
/
dotnet
/
dotnet_launcher.cc
diff --git
a/NativeLauncher/launcher/dotnet/dotnet_launcher.cc
b/NativeLauncher/launcher/dotnet/dotnet_launcher.cc
index
db5c2c5
..
f3a1056
100644
(file)
--- a/
NativeLauncher/launcher/dotnet/dotnet_launcher.cc
+++ b/
NativeLauncher/launcher/dotnet/dotnet_launcher.cc
@@
-339,7
+339,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();