aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/slice.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/slice.c')
-rw-r--r--src/pkg/runtime/slice.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkg/runtime/slice.c b/src/pkg/runtime/slice.c
index d967b1669b..4162b8daa2 100644
--- a/src/pkg/runtime/slice.c
+++ b/src/pkg/runtime/slice.c
@@ -186,9 +186,7 @@ void
void
·slicecopy(Slice to, Slice fm, uintptr width, int32 ret)
{
- if(fm.array == nil || fm.len == 0 ||
- to.array == nil || to.len == 0 ||
- width == 0) {
+ if(fm.len == 0 || to.len == 0 || width == 0) {
ret = 0;
goto out;
}