aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-02-22 17:18:54 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-02-22 17:18:54 +0100
commit868ca548b10a4c3c49d114734053a22c974ff7a6 (patch)
tree98f932c7abc3cf00ec0d4247f54a41158b5ca605
parent9bec268a228de20149aaaf36db6893aa914f8a19 (diff)
libdvbv5: fix init of the ATSC service location
The memcpy() was not filling the initial values of this descriptor, as it would be expected. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r--lib/libdvbv5/descriptors/desc_atsc_service_location.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libdvbv5/descriptors/desc_atsc_service_location.c b/lib/libdvbv5/descriptors/desc_atsc_service_location.c
index 6a40ab79..51e48717 100644
--- a/lib/libdvbv5/descriptors/desc_atsc_service_location.c
+++ b/lib/libdvbv5/descriptors/desc_atsc_service_location.c
@@ -34,7 +34,7 @@ int atsc_desc_service_location_init(struct dvb_v5_fe_parms *parms,
size_t len;
len = sizeof(*s_loc) - offsetof(struct atsc_desc_service_location, bitfield);
- memcpy(&s_loc->bitfield, p, len);
+ memcpy(&s_loc, p, len);
p += len;
bswap16(s_loc->bitfield);

Privacy Policy