mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
cplus-dem.c (remember_Btype): Don't call memcpy with LEN==0.
2018-07-30 Tom Tromey <tom@tromey.com> * cplus-dem.c (remember_Btype): Don't call memcpy with LEN==0. From-SVN: r263069
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2018-07-30 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* cplus-dem.c (remember_Btype): Don't call memcpy with LEN==0.
|
||||
|
||||
2018-07-26 Martin Liska <mliska@suse.cz>
|
||||
|
||||
PR lto/86548
|
||||
|
||||
@@ -4471,7 +4471,8 @@ remember_Btype (struct work_stuff *work, const char *start,
|
||||
char *tem;
|
||||
|
||||
tem = XNEWVEC (char, len + 1);
|
||||
memcpy (tem, start, len);
|
||||
if (len > 0)
|
||||
memcpy (tem, start, len);
|
||||
tem[len] = '\0';
|
||||
work -> btypevec[index] = tem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user