소스 검색

ncd: NCDInterpProg: fix bad return value

ambrop7 14 년 전
부모
커밋
eb7c4029b0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ncd/NCDInterpProg.c

+ 1 - 1
ncd/NCDInterpProg.c

@@ -132,7 +132,7 @@ int NCDInterpProg_FindProcess (NCDInterpProg *o, const char *name, NCDProcess **
     
     NCDInterpProg__HashRef ref = NCDInterpProg__Hash_Lookup(&o->hash, o->procs, name);
     if (ref.link == NCDInterpProg__HashNullLink()) {
-        return -1;
+        return 0;
     }
     
     ASSERT(!strcmp(ref.ptr->name, name))