Changes in uspace/app/fdisk/fdisk.c [d5c1051:6c4eedf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/fdisk/fdisk.c
rd5c1051 r6c4eedf 210 210 } 211 211 212 int ret= asprintf(&dtext, "%s (%s)", svcname, scap);213 if (r et< 0) {212 rc = asprintf(&dtext, "%s (%s)", svcname, scap); 213 if (rc < 0) { 214 214 rc = ENOMEM; 215 215 printf("Out of memory.\n"); … … 269 269 return EOK; 270 270 error: 271 assert(rc != EOK);272 *rsvcid = 0;273 271 if (devlist != NULL) 274 272 fdisk_dev_list_free(devlist); … … 615 613 label = "(No name)"; 616 614 617 int ret= asprintf(&sdesc, "%s %s, %s, %s", label,615 rc = asprintf(&sdesc, "%s %s, %s, %s", label, 618 616 scap, spkind, sfstype); 619 if (r et< 0) {617 if (rc < 0) { 620 618 rc = ENOMEM; 621 619 goto error; … … 623 621 624 622 } else { 625 int ret= asprintf(&sdesc, "%s, %s", scap, spkind);626 if (r et< 0) {623 rc = asprintf(&sdesc, "%s, %s", scap, spkind); 624 if (rc < 0) { 627 625 rc = ENOMEM; 628 626 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.