Explorar o código

ncd: NCDInterpProg: fix bad return value

ambrop7 %!s(int64=13) %!d(string=hai) anos
pai
achega
eb7c4029b0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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))