diff options
author | florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2014-08-20 21:04:14 +0000 |
---|---|---|
committer | florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2014-08-20 21:04:14 +0000 |
commit | b16609bf952bf381154cb6cba87efc99c2c86a23 (patch) | |
tree | 67c27966e8d25f64de386f14c16731dbd0e7c27b /callgrind | |
parent | 0c12c46fb16ab10433d24787c5e3faed09c76bb9 (diff) | |
download | valgrind-b16609bf952bf381154cb6cba87efc99c2c86a23.tar.gz |
Clean up confusion about VG_(args_the_exename) which was believed to
possibly be NULL in several places. Nowadays, VG_(ii_create_image) will
terminate the process if VG_(args_the_exename) is NULL.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14323 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'callgrind')
-rw-r--r-- | callgrind/dump.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/callgrind/dump.c b/callgrind/dump.c index aa1ecb65d..5cc1d2729 100644 --- a/callgrind/dump.c +++ b/callgrind/dump.c @@ -1623,10 +1623,8 @@ void init_cmdbuf(void) Int i,j,size = 0; HChar* argv; - if (VG_(args_the_exename)) { - CLG_ASSERT( VG_(strlen)( VG_(args_the_exename) ) < BUF_LEN-1); - size = VG_(sprintf)(cmdbuf, " %s", VG_(args_the_exename)); - } + CLG_ASSERT( VG_(strlen)( VG_(args_the_exename) ) < BUF_LEN-1); + size = VG_(sprintf)(cmdbuf, " %s", VG_(args_the_exename)); for(i = 0; i < VG_(sizeXA)( VG_(args_for_client) ); i++) { argv = * (HChar**) VG_(indexXA)( VG_(args_for_client), i ); |