Skip to content

Commit

Permalink
Fixed some uninitialized variable warnings
Browse files Browse the repository at this point in the history
GCC 4.3.3, when used with -Wall, emits warnings that those variables "may be
used uninitialized in this function".

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
  • Loading branch information
tokkee authored and jonas committed Apr 13, 2009
1 parent cfb363b commit ac66fdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tig.c
Expand Up @@ -1614,7 +1614,7 @@ static int
option_bind_command(int argc, const char *argv[])
{
enum request request;
int keymap;
int keymap = -1;
int key;

if (argc < 3) {
Expand Down Expand Up @@ -5485,7 +5485,7 @@ status_update_files(struct view *view, struct line *line)
struct line *pos = view->line + view->lines;
int files = 0;
int file, done;
int cursor_y, cursor_x;
int cursor_y = -1, cursor_x = -1;

if (!status_update_prepare(&io, line->type))
return FALSE;
Expand Down

0 comments on commit ac66fdb

Please sign in to comment.