summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2012-09-17 10:50:06 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2012-09-17 10:50:06 (GMT)
commita653b3f4414f760cec203b743ab6dad7e594e684 (patch)
tree8ef9555e7b333e3e0a54b5eff85862d50761c998
parentfb6edef12067229b0282531c0c05e20267cb6763 (diff)
parent2877f3cf83e4fd6c3b74afeccd6181eb6257cd11 (diff)
downloadtcl-a653b3f4414f760cec203b743ab6dad7e594e684.zip
tcl-a653b3f4414f760cec203b743ab6dad7e594e684.tar.gz
tcl-a653b3f4414f760cec203b743ab6dad7e594e684.tar.bz2
eliminate compiler warning in previous commit
FossilOrigin-Name: 81b322475b97e523ff4fda6dfd6f21bcd18f091d
-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;