Преглед изворни кода

ncd: NCDInterpProg: fix bad return value

ambrop7 пре 13 година
родитељ
комит
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))