瀏覽代碼

faux.error: obj==NULL is not error for faux_error_add()

Serj Kalichev 3 年之前
父節點
當前提交
9a3d88de35
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      faux/error/error.c

+ 1 - 2
faux/error/error.c

@@ -106,10 +106,9 @@ bool_t faux_error_add(faux_error_t *error, const char *str)
 {
 	char *tmp = NULL;
 
-	assert(error);
+	// If error == NULL it's not bug
 	if (!error)
 		return BOOL_FALSE;
-	assert(str);
 	if (!str)
 		return BOOL_FALSE;