mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 02:49:32 +03:00
Fix coverity defects: CID 150921, 150927
CID 150921: Unchecked return value (CHECKED_RETURN) CID 150927 : Unchecked return value (CHECKED_RETURN) Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: luozhengzheng <luo.zhengzheng@zte.com.cn> Closes #5267
This commit is contained in:
parent
21237e9167
commit
9a875c6c5d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user