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 | f2eb738e24709df54a1817c7239dd06f1252c39f (patch) | |
tree | 45c0fe350eb26228b0fa4ffd8d106bee600b1114 /generic/tclBinary.c | |
parent | 1c6a48f8f323fa1ca474eae9ac2a9bd5b76aed68 (diff) | |
download | tcl-f2eb738e24709df54a1817c7239dd06f1252c39f.zip tcl-f2eb738e24709df54a1817c7239dd06f1252c39f.tar.gz tcl-f2eb738e24709df54a1817c7239dd06f1252c39f.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 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; |