浏览代码

*** empty log message ***

David Rose 25 年之前
父节点
当前提交
8c04612fd4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      panda/src/ipc/ipc_nspr_traits.h

+ 1 - 1
panda/src/ipc/ipc_nspr_traits.h

@@ -236,7 +236,7 @@ public:
 
 
            char* temp = new char[numBytes];
            char* temp = new char[numBytes];
            int numRead = PR_Read(_fhandle, temp, numBytes);
            int numRead = PR_Read(_fhandle, temp, numBytes);
-           if(numRead<=0) {
+           if(numRead < 0) {
                 cerr << "PR_Read() in libnspr failed!\n";
                 cerr << "PR_Read() in libnspr failed!\n";
                 delete temp;
                 delete temp;
                 return 0;
                 return 0;