Changeset c9c5170b8ad691bbf06111e08f9f911e68484fa8
- Timestamp:
- 03/03/08 14:55:52
(6 months ago)
- Author:
- Rémi Duraffort <ivoire@via.ecp.fr>
- git-committer:
- Rémi Duraffort <ivoire@via.ecp.fr> 1204552552 +0100
- git-parent:
[e0431bc0c10adc5d969d56194a43bb5546e55b79]
- git-author:
- Rémi Duraffort <ivoire@via.ecp.fr> 1204552552 +0100
- Message:
Check only one time the return value of malloc.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r0bbedab |
rc9c5170 |
|
| 876 | 876 | *psize = 0; |
|---|
| 877 | 877 | |
|---|
| | 878 | if( !config ) |
|---|
| | 879 | return NULL; |
|---|
| | 880 | |
|---|
| 878 | 881 | for( i = 0, j = 0; i < size; i++ ) |
|---|
| 879 | 882 | { |
|---|
| … | … | |
| 884 | 887 | continue; |
|---|
| 885 | 888 | |
|---|
| 886 | | if( config != NULL ) |
|---|
| 887 | | memcpy( config + j, item, sizeof( *config ) ); |
|---|
| | 889 | memcpy( config + j, item, sizeof( *config ) ); |
|---|
| 888 | 890 | j++; |
|---|
| 889 | 891 | } |
|---|