Kouhei Sutou
null+****@clear*****
Sun Oct 18 21:54:49 JST 2015
Kouhei Sutou 2015-10-18 21:54:49 +0900 (Sun, 18 Oct 2015) New Revision: d1ea574f1571f4e691c0f60cdb7d03d53285b3b4 https://github.com/mroonga/mroonga/commit/d1ea574f1571f4e691c0f60cdb7d03d53285b3b4 Message: Add NULL check Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+1 -1) =================================================================== --- ha_mroonga.cpp 2015-10-18 21:22:44 +0900 (c320411) +++ ha_mroonga.cpp 2015-10-18 21:54:49 +0900 (6d8e193) @@ -4643,7 +4643,7 @@ int ha_mroonga::generic_delete_table(const char *name, const char *table_name) error = drop_indexes(table_name); grn_obj *table_obj = grn_ctx_get(ctx, table_name, strlen(table_name)); - if (!ctx->rc) { + if (table_obj) { grn_obj_remove(ctx, table_obj); } if (ctx->rc) { -------------- next part -------------- HTML����������������������������...Download