Changeset 1133 in MondoRescue for branches/stable/mondo/src/lib/mr_mem.c
- Timestamp:
- Feb 11, 2007, 12:02:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/lib/mr_mem.c
r1104 r1133 35 35 *allocated = NULL; 36 36 } else { 37 mr_msg_int( 0,line,file,"Attempt to reference NULL pointer\nExiting...");37 mr_msg_int(1,line,file,"Attempt to reference NULL pointer\nExiting..."); 38 38 mr_exit(-1,"Attempt to reference NULL pointer"); 39 39 } … … 47 47 ret = malloc(size); 48 48 if (ret == NULL) { 49 mr_msg_int( 0,line,file,"Unable to alloc memory in mr_malloc\nExiting...");49 mr_msg_int(1,line,file,"Unable to alloc memory in mr_malloc\nExiting..."); 50 50 mr_exit(-1,"Unable to alloc memory in mr_malloc"); 51 51 } … … 60 60 ret = getline(lineptr,n,stream); 61 61 if (ret == -1) { 62 mr_msg_int( 0,line,file,"Unable to alloc memory in mr_getline\nExiting...",line,file);62 mr_msg_int(1,line,file,"Unable to alloc memory in mr_getline\nExiting..."); 63 63 mr_exit(-1,"Unable to alloc memory in mr_getline"); 64 64 } … … 74 74 res = vasprintf(strp, fmt, args); 75 75 if (res == -1) { 76 mr_msg_int( 0,line,file,"Unable to alloc memory in mr_asprintf\nExiting...",line,file);76 mr_msg_int(1,line,file,"Unable to alloc memory in mr_asprintf\nExiting..."); 77 77 mr_exit(-1,"Unable to alloc memory in mr_asprintf"); 78 78 }
Note:
See TracChangeset
for help on using the changeset viewer.