Signed-off-by: André Roth <neolynx@xxxxxxxxx> --- utils/dvb/dvbv5-scan.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/dvb/dvbv5-scan.c b/utils/dvb/dvbv5-scan.c index 501b332..7eb3bf5 100644 --- a/utils/dvb/dvbv5-scan.c +++ b/utils/dvb/dvbv5-scan.c @@ -407,6 +407,7 @@ int main(int argc, char **argv) { struct arguments args; int err, lnb = -1,idx = -1; + int r; const struct argp argp = { .options = options, .parser = parse_opt, @@ -459,8 +460,12 @@ int main(int argc, char **argv) return -1; } - asprintf(&args.demux_dev, + r = asprintf(&args.demux_dev, "/dev/dvb/adapter%i/demux%i", args.adapter_dmx, args.demux); + if (r < 0) { + fprintf(stderr, "asprintf error\n" ); + return -1; + } if (verbose) fprintf(stderr, "using demux '%s'\n", args.demux_dev); -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html