mapistore: Use __FUNCTION__ macro instead of the literal function name for talloc_named()
[tridge/openchange.git] / trunk / mapiproxy / libmapistore / database / mapistoredb.c
index e889a13c54d85e609eab105d17594d70a023e235..8a67a406cdb8081bec2b414bb87319f28b94ab34 100644 (file)
@@ -343,7 +343,7 @@ enum MAPISTORE_ERROR mapistoredb_register_new_mailbox(struct mapistoredb_context
        }
 
        /* Step 2. Create the user store entry within the mapistore database */
-       mem_ctx = talloc_named(NULL, 0, "mapistoredb_register_new_mailbox");
+       mem_ctx = talloc_named(NULL, 0, __FUNCTION__);
        user_store_ldif = talloc_asprintf(mem_ctx, MDB_USER_STORE_LDIF_TMPL,
                                          username, firstorgdn, username);
        if (write_ldif_string_to_store(mdb_ctx, user_store_ldif) == false) {