bugfix pointed out by Kris Salaah (own mistake)
authorCampbell Barton <ideasman42@gmail.com>
Tue, 28 Sep 2010 19:57:47 +0000 (19:57 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 28 Sep 2010 19:57:47 +0000 (19:57 +0000)
source/blender/editors/space_console/console_ops.c

index 34e6add..ec3c600 100644 (file)
@@ -374,7 +374,7 @@ static int insert_exec(bContext *C, wmOperator *op)
        if(str[0]=='\t' && str[1]=='\0') {
                int len= TAB_LENGTH - (ci->cursor % TAB_LENGTH);
                MEM_freeN(str);
-               MEM_mallocN(len + 1, "insert_exec");
+               str= MEM_mallocN(len + 1, "insert_exec");
                memset(str, ' ', len);
                str[len]= '\0';
        }