BLI_make_file_string wasn't guaranteed to initialize the resulting path, some parts...
[blender.git] / source / blender / editors / render / render_preview.c
index 697cddfcee0a5d6b415e67f224dcce35acb3a4b3..af2cd431a10047dae300786202498d4ca7778078 100644 (file)
@@ -122,8 +122,6 @@ ImBuf* get_brush_icon(Brush *brush)
                                if (!(brush->icon_imbuf)) {
                                        folder= BLI_get_folder(BLENDER_DATAFILES, "brushicons");
 
-                                       path[0]= 0;
-
                                        BLI_make_file_string(G.main->name, path, folder, brush->icon_filepath);
 
                                        if (path[0])