Explorar o código

ncd: NCDInterpProg: fix crash on duplicate process/template name

ambrop7 %!s(int64=13) %!d(string=hai) anos
pai
achega
f2a2b37f1d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ncd/NCDInterpProg.c

+ 1 - 1
ncd/NCDInterpProg.c

@@ -83,7 +83,7 @@ int NCDInterpProg_Init (NCDInterpProg *o, NCDProgram *prog, NCDStringIndex *stri
         
         NCDInterpProg__HashRef ref = {e, o->num_procs};
         if (!NCDInterpProg__Hash_Insert(&o->hash, o->procs, ref, NULL)) {
-            BLog(BLOG_ERROR, "duplicate process or template name: %s", e->name);
+            BLog(BLOG_ERROR, "duplicate process or template name: %s", NCDProcess_Name(p));
             NCDInterpProcess_Free(&e->iprocess);
             goto fail2;
         }