提交 ce163918 编写于 作者: A Al Viro

inotify_handle_event(): don't bother with strlen()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 e43e9c33
......@@ -89,7 +89,7 @@ int inotify_handle_event(struct fsnotify_group *group,
return 0;
}
if (file_name) {
len = strlen(file_name->name);
len = file_name->len;
alloc_len += len + 1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册