summaryrefslogtreecommitdiffstats
path: root/generic/tclBinary.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclBinary.c')
-rw-r--r--generic/tclBinary.c2
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;