aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/follow_tcp.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-12-14 03:00:08 +0000
committerEvan Huus <eapache@gmail.com>2012-12-14 03:00:08 +0000
commit85dcc2d2c035b654fbc7d5ff59b9c040638e4cce (patch)
tree7c55884354cab92696e8b48ecd72c54d5d0db1bc /ui/gtk/follow_tcp.c
parent90f0616d25f30cdbc55fef9da24aac34eb74a935 (diff)
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.c1
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';