Diff for /qemu/path.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2018/04/24 17:34:24 version 1.1.1.2, 2018/04/24 18:23:57
Line 46  static struct pathelem *new_entry(const  Line 46  static struct pathelem *new_entry(const 
 {  {
     struct pathelem *new = malloc(sizeof(*new));      struct pathelem *new = malloc(sizeof(*new));
     new->name = strdup(name);      new->name = strdup(name);
     asprintf(&new->pathname, "%s/%s", root, name);      if (asprintf(&new->pathname, "%s/%s", root, name) == -1) {
           printf("Cannot allocate memory\n");
           exit(1);
       }
     new->num_entries = 0;      new->num_entries = 0;
     return new;      return new;
 }  }

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


unix.superglobalmegacorp.com