Code cleanup: use 'const' for arrays (python)
[blender.git] / source / blender / python / bmesh / bmesh_py_ops_call.c
index f4fe1ede088a29292abc257bd412e51fb6fbea7e..9c9b69186abf34001e36b876e72ab714f6c8257e 100644 (file)
@@ -768,7 +768,7 @@ PyObject *BPy_BMO_call(BPy_BMeshOpFunc *self, PyObject *args, PyObject *kw)
                        /* temp code, strip off '.out' while we keep this convention */
                        {
                                char slot_name_strip[MAX_SLOTNAME];
-                               char *ch = strchr(slot->slot_name, '.');  /* can't fail! */
+                               const char *ch = strchr(slot->slot_name, '.');  /* can't fail! */
                                int tot = ch - slot->slot_name;
                                BLI_assert(ch != NULL);
                                memcpy(slot_name_strip, slot->slot_name, tot);