Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
bb13c350
Commit
bb13c350
authored
Oct 03, 2005
by
Jakub Jelinek
Committed by
Jakub Jelinek
Oct 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* runtime/memory.c (allocate_size): Malloc 1 byte if size == 0.
From-SVN: r104909
parent
01406f86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
libgfortran/ChangeLog
+4
-0
libgfortran/runtime/memory.c
+1
-1
No files found.
libgfortran/ChangeLog
View file @
bb13c350
2005-10-03 Jakub Jelinek <jakub@redhat.com>
* runtime/memory.c (allocate_size): Malloc 1 byte if size == 0.
2005-10-03 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR libfortran/19308
...
...
libgfortran/runtime/memory.c
View file @
bb13c350
...
...
@@ -182,7 +182,7 @@ allocate_size (void **mem, size_t size, GFC_INTEGER_4 * stat)
if
(
!
mem
)
runtime_error
(
"Internal: NULL mem pointer in ALLOCATE."
);
newmem
=
malloc
(
size
);
newmem
=
malloc
(
size
?
size
:
1
);
if
(
!
newmem
)
{
if
(
stat
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment