fix: 编码规范问题修复
1.拼写错误 2.指针判空 3.函数返回值处理 Signed-off-by: zhushengle <zhushengle@huawei.com> Change-Id: I8fad28051cab6d99357ffbb29aa0720235ecf502
This commit is contained in:
@@ -1506,7 +1506,7 @@ static int do_ioctl_SIOCGIFCONF(int sockfd, long cmd, void *argp)
|
||||
return -1;
|
||||
}
|
||||
nbytes = ifc.ifc_len;
|
||||
if (nbytes < 0) {
|
||||
if (nbytes <= 0) {
|
||||
set_errno(EINVAL);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user