From 65897410ae420c2548d2933582c74d6417658bb3 Mon Sep 17 00:00:00 2001 From: dkf Date: Wed, 6 Oct 2004 13:47:34 +0000 Subject: Braces round if bodies... --- generic/tclIOGT.c | 10 +++++----- generic/tclParse.c | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/generic/tclIOGT.c b/generic/tclIOGT.c index 052d076..22e5362 100644 --- a/generic/tclIOGT.c +++ b/generic/tclIOGT.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * CVS: $Id: tclIOGT.c,v 1.9 2004/09/10 19:54:06 andreas_kupries Exp $ + * CVS: $Id: tclIOGT.c,v 1.10 2004/10/06 13:47:34 dkf Exp $ */ #include "tclInt.h" @@ -409,9 +409,9 @@ ExecuteCallback (dataPtr, interp, op, buf, bufLen, transmit, preserve) } res = Tcl_ListObjAppendElement(dataPtr->interp, command, temp); - - if (res != TCL_OK) + if (res != TCL_OK) { goto cleanup; + } /* * Use a byte-array to prevent the misinterpretation of binary data @@ -427,9 +427,9 @@ ExecuteCallback (dataPtr, interp, op, buf, bufLen, transmit, preserve) } res = Tcl_ListObjAppendElement (dataPtr->interp, command, temp); - - if (res != TCL_OK) + if (res != TCL_OK) { goto cleanup; + } /* * Step 2, execute the command at the global level of the interpreter diff --git a/generic/tclParse.c b/generic/tclParse.c index 4d34448..8b5315c 100644 --- a/generic/tclParse.c +++ b/generic/tclParse.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclParse.c,v 1.37 2004/07/12 01:09:10 msofer Exp $ + * RCS: @(#) $Id: tclParse.c,v 1.38 2004/10/06 13:50:07 dkf Exp $ */ #include "tclInt.h" @@ -570,8 +570,9 @@ TclParseHex(src, numBytes, resultPtr) while (numBytes--) { unsigned char digit = UCHAR(*p); - if (!isxdigit(digit)) + if (!isxdigit(digit)) { break; + } ++p; result <<= 4; -- cgit v0.12