summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cfb363b)
raw | patch | inline | side by side (parent: cfb363b)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 3 Apr 2009 16:34:08 +0000 (18:34 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 13 Apr 2009 15:36:52 +0000 (17:36 +0200) |
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>
used uninitialized in this function".
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.c | patch | blob | history |
index cffa86d5fcafdd22544a19e7283f5e1f3241749d..e52185e4be36b0f15174ff2faad7e2c50196c933 100644 (file)
--- a/tig.c
+++ b/tig.c
option_bind_command(int argc, const char *argv[])
{
enum request request;
- int keymap;
+ int keymap = -1;
int key;
if (argc < 3) {
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;