diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-09-17 10:50:06 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-09-17 10:50:06 (GMT) |
commit | b010f2f6d941bf70ee1512bcf70c3a4714dcf996 (patch) | |
tree | 8ef9555e7b333e3e0a54b5eff85862d50761c998 /generic/tclBinary.c | |
parent | 0807baacce4a33e3515110feb33689c90b397f80 (diff) | |
parent | f0b29ca5582f739d333f185cf4cd0be2432025b5 (diff) | |
download | tcl-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.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; |