Changeset 89e2aac in mainline for uspace/lib/fdisk/src/fdisk.c


Ignore:
Timestamp:
2017-07-08T17:06:34Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9bf4488
Parents:
1c88835
Message:

Fix sysinst.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fdisk/src/fdisk.c

    r1c88835 r89e2aac  
    735735        vbd_part_id_t partid = 0;
    736736        vol_part_info_t vpinfo;
    737         char *label;
    738         int rc;
    739 
    740         label = str_dup(pspec->label);
    741         if (label == NULL)
    742                 return ENOMEM;
     737        const char *label;
     738        int rc;
     739
     740        label = pspec->label != NULL ? pspec->label : "";
    743741
    744742        rc = fdisk_part_spec_prepare(dev, pspec, &vpspec);
     
    762760        if (part->svc_id != 0) {
    763761                rc = vol_part_mkfs(dev->fdisk->vol, part->svc_id, pspec->fstype,
    764                     pspec->label);
     762                    label);
    765763                if (rc != EOK && rc != ENOTSUP) {
    766764                        rc = EIO;
Note: See TracChangeset for help on using the changeset viewer.