From: Chris B. <buc...@us...> - 2011-06-21 16:14:15
|
Update of /cvsroot/sblim/sfcb In directory vz-cvs-3.sog:/tmp/cvs-serv15618 Modified Files: httpAdapter.c ChangeLog NEWS Log Message: [ 3323427 ] Unnecessary NULL check in httpAdapter Index: NEWS =================================================================== RCS file: /cvsroot/sblim/sfcb/NEWS,v retrieving revision 1.590 retrieving revision 1.591 diff -u -d -r1.590 -r1.591 --- NEWS 21 Jun 2011 16:07:32 -0000 1.590 +++ NEWS 21 Jun 2011 16:14:13 -0000 1.591 @@ -18,6 +18,7 @@ - 3314762 Memory leak in method invoke using SFCB local interface - 3165732 Add ability for client library to specify configuration file - 3323422 Unnecessary NULL check in control.c +- 3323427 Unnecessary NULL check in httpAdapter Changes in 1.3.11 ================= Index: httpAdapter.c =================================================================== RCS file: /cvsroot/sblim/sfcb/httpAdapter.c,v retrieving revision 1.89 retrieving revision 1.90 diff -u -d -r1.89 -r1.90 --- httpAdapter.c 8 Jun 2011 22:00:12 -0000 1.89 +++ httpAdapter.c 21 Jun 2011 16:14:13 -0000 1.90 @@ -486,10 +486,8 @@ if (rs.segments[i].txt) { if (rs.segments[i].mode == 2) { UtilStringBuffer *sb = (UtilStringBuffer *) rs.segments[i].txt; - if (sb) { - commWrite(conn_fd, (void*)sb->ft->getCharPtr(sb), ls[i]); - sb->ft->release(sb); - } + commWrite(conn_fd, (void*)sb->ft->getCharPtr(sb), ls[i]); + sb->ft->release(sb); } else { commWrite(conn_fd, rs.segments[i].txt, ls[i]); @@ -596,10 +594,8 @@ if (rs.segments[i].txt) { if (rs.segments[i].mode == 2) { UtilStringBuffer *sb = (UtilStringBuffer *) rs.segments[i].txt; - if (sb) { - commWrite(*(ctx->commHndl), (void*)sb->ft->getCharPtr(sb), ls[i]); - sb->ft->release(sb); - } + commWrite(*(ctx->commHndl), (void*)sb->ft->getCharPtr(sb), ls[i]); + sb->ft->release(sb); } else { commWrite(*(ctx->commHndl), rs.segments[i].txt, ls[i]); Index: ChangeLog =================================================================== RCS file: /cvsroot/sblim/sfcb/ChangeLog,v retrieving revision 1.664 retrieving revision 1.665 diff -u -d -r1.664 -r1.665 --- ChangeLog 21 Jun 2011 16:07:32 -0000 1.664 +++ ChangeLog 21 Jun 2011 16:14:13 -0000 1.665 @@ -1,5 +1,8 @@ 2011-06-21 Chris Buccella <buc...@li...> + * httpAdapter.c: + [ 3323427 ] Unnecessary NULL check in httpAdapter + * control.c: [ 3323422 ] Unnecessary NULL check in control.c |