From 161ae2b5729bdc5162db7fb0908c9ed6a89db3fe Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 2 Oct 2010 13:52:46 +0000 Subject: [PATCH] Fix warning in collada operator after a recent commit. --- source/blender/windowmanager/intern/wm_operators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 91bebb89a9a..a5294f170f3 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -1909,7 +1909,7 @@ static void WM_OT_save_mainfile(wmOperatorType *ot) static int wm_collada_export_invoke(bContext *C, wmOperator *op, wmEvent *event) { if(!RNA_property_is_set(op->ptr, "filepath")) { - char *filepath[FILE_MAX]; + char filepath[FILE_MAX]; BLI_strncpy(filepath, G.sce, sizeof(filepath)); BLI_replace_extension(filepath, sizeof(filepath), ".dae"); RNA_string_set(op->ptr, "filepath", filepath);