aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluozhengzheng <[email protected]>2016-10-15 00:40:08 +0800
committerBrian Behlendorf <[email protected]>2016-10-14 09:40:08 -0700
commit9a875c6c5dd1e7cb0dad56d593a428d570ea5111 (patch)
treece09f2d79b6ab912d7727e5bf29c8ef4631734d5
parent21237e916713e1c53c6314cd86ed0742baf4bbbb (diff)
Fix coverity defects: CID 150921, 150927
CID 150921: Unchecked return value (CHECKED_RETURN) CID 150927 : Unchecked return value (CHECKED_RETURN) Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: luozhengzheng <[email protected]> Closes #5267
-rw-r--r--lib/libspl/getexecname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libspl/getexecname.c b/lib/libspl/getexecname.c
index 478351ce7..c21a110ad 100644
--- a/lib/libspl/getexecname.c
+++ b/lib/libspl/getexecname.c
@@ -38,7 +38,7 @@ getexecname(void)
char *ptr = NULL;
ssize_t rc;
- pthread_mutex_lock(&mtx);
+ (void) pthread_mutex_lock(&mtx);
if (strlen(execname) == 0) {
rc = readlink("/proc/self/exe",
@@ -53,6 +53,6 @@ getexecname(void)
ptr = execname;
}
- pthread_mutex_unlock(&mtx);
+ (void) pthread_mutex_unlock(&mtx);
return (ptr);
}