Эх сурвалжийг харах

ncd: modules: net_watch_interfaces: add missing error message

ambrop7 14 жил өмнө
parent
commit
c7dfcc70f4

+ 1 - 0
ncd/modules/net_watch_interfaces.c

@@ -360,6 +360,7 @@ static void func_new (NCDModuleInst *i)
     
     
     // compile regex
     // compile regex
     if (regcomp(&o->preg, "/([^/]+)/net/", REG_EXTENDED)) {
     if (regcomp(&o->preg, "/([^/]+)/net/", REG_EXTENDED)) {
+        ModuleLog(o->i, BLOG_ERROR, "regcomp failed");
         goto fail2;
         goto fail2;
     }
     }