Changeset b7be230 in mainline for uspace/app/bdsh/cmds/modules/rm/rm.c
- Timestamp:
- 2009-01-22T17:11:54Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bffd91f
- Parents:
- bf226890
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/rm/rm.c
rbf226890 rb7be230 34 34 #include <fcntl.h> 35 35 #include <dirent.h> 36 #include <assert.h>37 36 #include <getopt.h> 38 37 … … 220 219 len = strlen(argv[i]) + 2; 221 220 buff = (char *) realloc(buff, len); 222 assert(buff != NULL); 221 if (buff == NULL) { 222 printf("rm: out of memory\n"); 223 ret = 1; 224 break; 225 } 223 226 memset(buff, 0, sizeof(buff)); 224 227 snprintf(buff, len, argv[i]);
Note:
See TracChangeset
for help on using the changeset viewer.