Просмотр исходного кода

ncd: modules: net_watch_interfaces: add missing error message

ambrop7 14 лет назад
Родитель
Сommit
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;
     }