Explorar el Código

ncd: NCDInterpProg: fix bad return value

ambrop7 hace 13 años
padre
commit
eb7c4029b0
Se han modificado 1 ficheros con 1 adiciones y 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))