فهرست منبع

ncd: modules: net_watch_interfaces: add missing error message

ambrop7 14 سال پیش
والد
کامیت
c7dfcc70f4
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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;
     }