projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2247603
)
[utils] Fix CppCheck warning in mono-threads-posix.c (#5161)
author
Alexander Köplinger
<alex.koeplinger@outlook.com>
Sat, 1 Jul 2017 19:06:24 +0000
(21:06 +0200)
committer
GitHub
<noreply@github.com>
Sat, 1 Jul 2017 19:06:24 +0000
(21:06 +0200)
After the refactoring in
9aaa0083d0def5b940372dbd9375336b036249fd
CppCheck complained about using 'result' uninitialized (looks like
it can't deduce that g_error will abort the process anyway).
mono/utils/mono-threads-posix.c
patch
|
blob
|
history
diff --git
a/mono/utils/mono-threads-posix.c
b/mono/utils/mono-threads-posix.c
index d97d0adcc8c8e0f1435a20d9ef94a6309f606684..79cc366d78f780dd9b01d9b9286e46616ac70c0b 100644
(file)
--- a/
mono/utils/mono-threads-posix.c
+++ b/
mono/utils/mono-threads-posix.c
@@
-157,6
+157,7
@@
mono_threads_pthread_kill (MonoThreadInfo *info, int signum)
#elif defined (HAVE_PTHREAD_KILL)
result = pthread_kill (mono_thread_info_get_tid (info), signum);
#else
+ result = -1;
g_error ("pthread_kill () is not supported by this platform");
#endif