]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Follow up 14714: use a real malloc cost centre instead of an empty string
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 12 Nov 2014 21:10:37 +0000 (21:10 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 12 Nov 2014 21:10:37 +0000 (21:10 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14715

coregrind/m_main.c

index 403955870f024b805d1bd62273f9c1fb81615ff0..6542600d0153b3ac2c2c2b9fa7a797f9410bda2f 100644 (file)
@@ -599,7 +599,7 @@ void main_process_cmd_line_options ( /*OUT*/Bool* logging_to_fd,
                nextpos = startpos + VG_(strlen)(startpos);
             if (startpos != nextpos) {
                VG_(clo_error_markers)[m] 
-                  = VG_(malloc)("", nextpos - startpos + 1);
+                  = VG_(malloc)("main.mpclo.2", nextpos - startpos + 1);
                VG_(memcpy)(VG_(clo_error_markers)[m], startpos, 
                            nextpos - startpos);
                VG_(clo_error_markers)[m][nextpos - startpos] = '\0';