summaryrefslogtreecommitdiffstats
path: root/generic/tclBinary.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-09-17 10:50:06 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-09-17 10:50:06 (GMT)
commitb010f2f6d941bf70ee1512bcf70c3a4714dcf996 (patch)
tree8ef9555e7b333e3e0a54b5eff85862d50761c998 /generic/tclBinary.c
parent0807baacce4a33e3515110feb33689c90b397f80 (diff)
parentf0b29ca5582f739d333f185cf4cd0be2432025b5 (diff)
downloadtcl-b010f2f6d941bf70ee1512bcf70c3a4714dcf996.zip
tcl-b010f2f6d941bf70ee1512bcf70c3a4714dcf996.tar.gz
tcl-b010f2f6d941bf70ee1512bcf70c3a4714dcf996.tar.bz2
eliminate compiler warning in previous commit
Diffstat (limited to 'generic/tclBinary.c')
-rw-r--r--generic/tclBinary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c
index cbd9b02..3d8b24c 100644
--- a/generic/tclBinary.c
+++ b/generic/tclBinary.c
@@ -310,7 +310,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;