diff options
author | Evan Huus <eapache@gmail.com> | 2012-12-14 03:00:08 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2012-12-14 03:00:08 +0000 |
commit | 85dcc2d2c035b654fbc7d5ff59b9c040638e4cce (patch) | |
tree | 7c55884354cab92696e8b48ecd72c54d5d0db1bc /ui/gtk/follow_tcp.c | |
parent | 90f0616d25f30cdbc55fef9da24aac34eb74a935 (diff) | |
download | wireshark-85dcc2d2c035b654fbc7d5ff59b9c040638e4cce.tar.gz |
Fixed uninitialized value warning.
I am now *very* impressed by GCC's flow analysis.
svn path=/trunk/; revision=46536
Diffstat (limited to 'ui/gtk/follow_tcp.c')
-rw-r--r-- | ui/gtk/follow_tcp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gtk/follow_tcp.c b/ui/gtk/follow_tcp.c index 2735c19383..7d78ffc7a7 100644 --- a/ui/gtk/follow_tcp.c +++ b/ui/gtk/follow_tcp.c @@ -320,6 +320,7 @@ sgetline(char *str, int *next) { end = strstr(str, "\r\n"); if (!end) { + *next = strlen(str); return NULL; } *end = '\0'; |