]> git.wh0rd.org - patches.git/blame - eterm-init-vars-libscream.patch
more random patches. who knows.
[patches.git] / eterm-init-vars-libscream.patch
CommitLineData
5e993f12 1Index: libscream.c
2===================================================================
3RCS file: /cvs/e/eterm/Eterm/src/libscream.c,v
4retrieving revision 1.33
5diff -u -p -r1.33 libscream.c
6--- libscream.c 19 Sep 2006 21:07:40 -0000 1.33
7+++ libscream.c 14 Oct 2006 05:14:36 -0000
8@@ -1084,7 +1084,7 @@ ns_attach_lcl(_ns_sess ** sp)
9 static int
10 ns_wait_for_socket(int port)
11 {
12- int tmp_sock, ret;
13+ int tmp_sock, ret = -1;
14 time_t start_time;
15
16 D_ESCREEN(("Waiting for forwarder to begin listening on port %d.\n", port));
17@@ -1933,7 +1933,7 @@ int
18 ns_ren_disp(_ns_sess * s, int d, char *name)
19 {
20 char *i = NULL, *n;
21- size_t l;
22+ size_t l = 0;
23 int ret = NS_FAIL;
24
25 if (!s) {