Update of /cvsroot/aolserver/aolserver/nsproxy
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv8778/nsproxy
Modified Files:
nsproxylib.c
Log Message:
remove direct access to interp->result, initializing potentially uninitialized variables
Index: nsproxylib.c
===================================================================
RCS file: /cvsroot/aolserver/aolserver/nsproxy/nsproxylib.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** nsproxylib.c 11 May 2007 22:11:59 -0000 1.6
--- nsproxylib.c 20 Jun 2008 08:06:33 -0000 1.7
***************
*** 281,285 ****
Tcl_Interp *interp;
Proc proc;
! int result, len, n, max;
Req *reqPtr;
Tcl_DString in, out;
--- 281,285 ----
Tcl_Interp *interp;
Proc proc;
! int result, len, n, max = 0;
Req *reqPtr;
Tcl_DString in, out;
***************
*** 330,334 ****
if (init != NULL) {
if ((*init)(interp) != TCL_OK) {
! FatalExit(interp->result);
}
}
--- 330,334 ----
if (init != NULL) {
if ((*init)(interp) != TCL_OK) {
! FatalExit(Tcl_GetStringResult(interp));
}
}
***************
*** 1461,1465 ****
{
Res hdr;
! char *einfo, *ecode, *result;
int clen, ilen, rlen;
--- 1461,1465 ----
{
Res hdr;
! char *einfo = NULL, *ecode = NULL, *result;
int clen, ilen, rlen;
***************
*** 1899,1905 ****
ProxyError(Tcl_Interp *interp, Err err)
{
! char *msg, *sysmsg, *code;
- sysmsg = NULL;
switch (err) {
case ENone:
--- 1899,1904 ----
ProxyError(Tcl_Interp *interp, Err err)
{
! char *msg = NULL, *sysmsg = NULL, *code = NULL;
switch (err) {
case ENone:
|