diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2012-09-17 10:50:06 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2012-09-17 10:50:06 (GMT) |
commit | a653b3f4414f760cec203b743ab6dad7e594e684 (patch) | |
tree | 8ef9555e7b333e3e0a54b5eff85862d50761c998 | |
parent | fb6edef12067229b0282531c0c05e20267cb6763 (diff) | |
parent | 2877f3cf83e4fd6c3b74afeccd6181eb6257cd11 (diff) | |
download | tcl-a653b3f4414f760cec203b743ab6dad7e594e684.zip tcl-a653b3f4414f760cec203b743ab6dad7e594e684.tar.gz tcl-a653b3f4414f760cec203b743ab6dad7e594e684.tar.bz2 |
eliminate compiler warning in previous commit
FossilOrigin-Name: 81b322475b97e523ff4fda6dfd6f21bcd18f091d
-rw-r--r-- | generic/tclBinary.c | 2 |
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; |