summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4415084)
We are guaranteed that ctx is non-null by a previous check.
new_device = malloc(sizeof(*new_device));
if (new_device == NULL) {
new_device = malloc(sizeof(*new_device));
if (new_device == NULL) {
- fatal("cannot allocate a new device (%s)\n", strerror(errno));
+ debug(ctx, "cannot allocate a new device (%s)\n", strerror(errno));
return NULL;
}
memset(new_device, 0, sizeof(*new_device));
return NULL;
}
memset(new_device, 0, sizeof(*new_device));