Ticket #151: fix_uninitalised_int.patch

File fix_uninitalised_int.patch, 855 bytes (added by winnie, 16 years ago)

Small patch which rewrites the return logic

  • edit/edit.c

    diff --git a/edit/edit.c b/edit/edit.c
    index ff2b2e7..14e701a 100644
    a b edit_move_backward_lots (WEdit *edit, long increment) 
    10991099int edit_cursor_move (WEdit * edit, long increment) 
    11001100{ 
    11011101/* this is the same as a combination of two of the above routines, with only one push onto the undo stack */ 
    1102     int c; 
     1102    int c = -3; 
    11031103 
    11041104#ifdef FAST_MOVE_CURSOR 
    11051105    if (increment < -256) { 
    int edit_cursor_move (WEdit * edit, long increment) 
    11321132            } 
    11331133        } 
    11341134 
    1135         return c; 
    11361135    } else if (increment > 0) { 
    11371136        for (; increment > 0; increment--) { 
    11381137            if (!edit->curs2) 
    int edit_cursor_move (WEdit * edit, long increment) 
    11561155                edit->force |= REDRAW_LINE_ABOVE; 
    11571156            } 
    11581157        } 
     1158        } 
    11591159        return c; 
    1160     } else 
    1161         return -3; 
    11621160} 
    11631161 
    11641162/* These functions return positions relative to lines */