Kouhei Sutou 2019-03-19 15:36:28 +0900 (Tue, 19 Mar 2019) Revision: 9789441d8d68d94985332e515f801a2dfce829f6 https://github.com/groonga/groonga/commit/9789441d8d68d94985332e515f801a2dfce829f6 Message: Use GRN_API_RETURN Modified files: lib/token_cursor.c Modified: lib/token_cursor.c (+4 -2) =================================================================== --- lib/token_cursor.c 2019-03-19 15:11:11 +0900 (0157f44c3) +++ lib/token_cursor.c 2019-03-19 15:36:28 +0900 (b1b6e9426) @@ -1,7 +1,7 @@ /* -*- c-basic-offset: 2 -*- */ /* Copyright(C) 2009-2018 Brazil - Copyright(C) 2018 Kouhei Sutou <kou****@clear*****> + Copyright(C) 2018-2019 Kouhei Sutou <kou****@clear*****> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -83,7 +83,9 @@ grn_token_cursor_open(grn_ctx *ctx, grn_obj *table, "[token-cursor][open] failed to get table information"); GRN_API_RETURN(NULL); } - if (!(token_cursor = GRN_MALLOC(sizeof(grn_token_cursor)))) { return NULL; } + if (!(token_cursor = GRN_MALLOC(sizeof(grn_token_cursor)))) { + GRN_API_RETURN(NULL); + } token_cursor->table = table; token_cursor->mode = mode; token_cursor->encoding = encoding; -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190319/c0e57ba1/attachment.html>