diff options
Diffstat (limited to 'src/input/input_dvd.c')
-rw-r--r-- | src/input/input_dvd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c index 17df441f2..c46481271 100644 --- a/src/input/input_dvd.c +++ b/src/input/input_dvd.c @@ -1381,8 +1381,8 @@ check_solaris_vold_device(dvd_input_class_t *this) (volume_action = getenv("VOLUME_ACTION")) != NULL && strcmp(volume_action, "insert") == 0) { - asprintf(&device, "%s/%s", volume_device, volume_name); - if (stat(device, &stb) != 0 || !S_ISCHR(stb.st_mode)) { + device = _x_asprintf("%s/%s", volume_device, volume_name); + if (!device || stat(device, &stb) != 0 || !S_ISCHR(stb.st_mode)) { free(device); return; } |