Sho Minagawa
null+****@clear*****
Wed Jul 6 17:25:35 JST 2016
Sho Minagawa 2016-07-06 17:25:35 +0900 (Wed, 06 Jul 2016) New Revision: ada5ef5578d4443416efa7ce189c00f67ab03f63 https://github.com/groonga/groonga/commit/ada5ef5578d4443416efa7ce189c00f67ab03f63 Merged fbefa25: Merge pull request #579 from minagawa-sho/null-check-in-grn-proc-create Message: Null-check should precede dereference Modified files: lib/db.c Modified: lib/db.c (+2 -1) =================================================================== --- lib/db.c 2016-07-05 20:33:57 +0900 (a3d5ff3) +++ lib/db.c 2016-07-06 17:25:35 +0900 (df5a5a6) @@ -835,12 +835,13 @@ grn_proc_create(grn_ctx *ctx, const char *name, int name_size, grn_proc_type typ grn_id range = GRN_ID_NIL; int added = 0; grn_obj *db; - const char *path = ctx->impl->plugin_path; + const char *path; if (!ctx || !ctx->impl || !(db = ctx->impl->db)) { ERR(GRN_INVALID_ARGUMENT, "db not initialized"); return NULL; } GRN_API_ENTER; + path = ctx->impl->plugin_path; if (path) { range = grn_plugin_reference(ctx, path); } -------------- next part -------------- HTML����������������������������... Descargar