浏览代码

Fix incorrect variable name

Jeremy Soller 6 年之前
父节点
当前提交
62b83190bf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/header/stdio/mod.rs

+ 1 - 1
src/header/stdio/mod.rs

@@ -425,7 +425,7 @@ pub unsafe extern "C" fn fread(
     nitems: size_t,
     stream: *mut FILE,
 ) -> size_t {
-    if size == 0 || count == 0 {
+    if size == 0 || nitems == 0 {
         return 0;
     }