about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-15 13:18:13 +0000
committerbors <bors@rust-lang.org>2015-09-15 13:18:13 +0000
commit3887ca27f16771b960b57e1c80997b2482ba5b76 (patch)
tree46c4bd562b3ec2d39215f075b16fa2f049aa5c98 /src
parent7161530fc4d2612eda627e79e1fee3f989fce0f7 (diff)
parent2eafd19dfadd035214ae7b17a91436650730a28e (diff)
downloadrust-3887ca27f16771b960b57e1c80997b2482ba5b76.tar.gz
rust-3887ca27f16771b960b57e1c80997b2482ba5b76.zip
Auto merge of #28407 - mmcco:master, r=alexcrichton
…e len is actually one more than the length of argv[0]. However, this is precarious and should probably be replaced with more robust logic.
Diffstat (limited to 'src')
-rw-r--r--src/rt/rust_builtin.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/rt/rust_builtin.c b/src/rt/rust_builtin.c
index cf497438a6b..af15bda4c3d 100644
--- a/src/rt/rust_builtin.c
+++ b/src/rt/rust_builtin.c
@@ -328,7 +328,6 @@ int rust_get_argv_zero(void* p, size_t* sz)
     return -1;
   }
 
-  memset(p, 0, len);
   memcpy(p, argv[0], len);
   free(argv);
   return 0;