From 63e2a3dab9914b7035d649695e8da67029a874cd Mon Sep 17 00:00:00 2001 From: emk Date: Sun, 14 Oct 2018 20:39:00 +0200 Subject: lua: mkdir API functions should return ERROR on error. --- src/plugins/lua/weechat-lua-api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/lua') diff --git a/src/plugins/lua/weechat-lua-api.c b/src/plugins/lua/weechat-lua-api.c index ce23d031c..fb5435280 100644 --- a/src/plugins/lua/weechat-lua-api.c +++ b/src/plugins/lua/weechat-lua-api.c @@ -541,7 +541,7 @@ API_FUNC(mkdir_home) if (weechat_mkdir_home (directory, mode)) API_RETURN_OK; - API_RETURN_OK; + API_RETURN_ERROR; } API_FUNC(mkdir) @@ -559,7 +559,7 @@ API_FUNC(mkdir) if (weechat_mkdir (directory, mode)) API_RETURN_OK; - API_RETURN_OK; + API_RETURN_ERROR; } API_FUNC(mkdir_parents) @@ -577,7 +577,7 @@ API_FUNC(mkdir_parents) if (weechat_mkdir_parents (directory, mode)) API_RETURN_OK; - API_RETURN_OK; + API_RETURN_ERROR; } API_FUNC(list_new) -- cgit v1.2.3