Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixing minor exception checks
[ric-plt/lib/rmr.git]
/
src
/
rmr
/
si
/
src
/
si95
/
siwait.c
diff --git
a/src/rmr/si/src/si95/siwait.c
b/src/rmr/si/src/si95/siwait.c
index
c14c5a9
..
291b8aa
100644
(file)
--- a/
src/rmr/si/src/si95/siwait.c
+++ b/
src/rmr/si/src/si95/siwait.c
@@
-69,7
+69,10
@@
extern int SIwait( struct ginfo_blk *gptr ) {
char *buf;
char *ibuf;
char *buf;
char *ibuf;
- ibuf = (char *) malloc( 2048 );
+ if( ( ibuf = (char *) malloc( 2048 ) ) == NULL ) {
+ rmr_vlog( RMR_VL_WARN, "ibuf malloc fail\n" );
+ return SI_ERROR;
+ }
if( gptr->flags & GIF_SHUTDOWN ) { // cannot do if we should shutdown
free( ibuf );
if( gptr->flags & GIF_SHUTDOWN ) { // cannot do if we should shutdown
free( ibuf );