summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-09-17 10:45:47 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-09-17 10:45:47 (GMT)
commitf0b29ca5582f739d333f185cf4cd0be2432025b5 (patch)
tree45c0fe350eb26228b0fa4ffd8d106bee600b1114
parent4cbd189c26149481fffd935920221b8e3a0c7b2e (diff)
downloadtcl-f0b29ca5582f739d333f185cf4cd0be2432025b5.zip
tcl-f0b29ca5582f739d333f185cf4cd0be2432025b5.tar.gz
tcl-f0b29ca5582f739d333f185cf4cd0be2432025b5.tar.bz2
eliminate compiler warning in previous commit
-rw-r--r--generic/tclBinary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c
index d3b11d3..9ba06ee 100644
--- a/generic/tclBinary.c
+++ b/generic/tclBinary.c
@@ -280,7 +280,7 @@ Tcl_SetByteArrayObj(
byteArrayPtr->used = length;
byteArrayPtr->allocated = length;
- if ((length != NULL) && (bytes > 0)) {
+ if ((bytes != NULL) && (length > 0)) {
memcpy(byteArrayPtr->bytes, bytes, (size_t) length);
}
objPtr->typePtr = &tclByteArrayType;