diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-09-17 10:45:47 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-09-17 10:45:47 (GMT) |
commit | f0b29ca5582f739d333f185cf4cd0be2432025b5 (patch) | |
tree | 45c0fe350eb26228b0fa4ffd8d106bee600b1114 | |
parent | 4cbd189c26149481fffd935920221b8e3a0c7b2e (diff) | |
download | tcl-f0b29ca5582f739d333f185cf4cd0be2432025b5.zip tcl-f0b29ca5582f739d333f185cf4cd0be2432025b5.tar.gz tcl-f0b29ca5582f739d333f185cf4cd0be2432025b5.tar.bz2 |
eliminate compiler warning in previous commit
-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 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; |