Browse Source

ncd: modules: net_watch_interfaces: add missing error message

ambrop7 14 năm trước cách đây
mục cha
commit
c7dfcc70f4
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      ncd/modules/net_watch_interfaces.c

+ 1 - 0
ncd/modules/net_watch_interfaces.c

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