Navigation Menu

Skip to content

Commit

Permalink
Add NULL check
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 18, 2015
1 parent 8ec0a78 commit d1ea574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit d1ea574

Please sign in to comment.