libdvbv5: Simplify PAT handling
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 29 Nov 2013 10:48:25 +0000 (08:48 -0200)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 29 Nov 2013 10:48:25 +0000 (08:48 -0200)
commitb0670964cf04b64805f54d2d1640583ac3b3b4ca
tree8c04bdb6d05e0801267b40abd12c2a17d80bd194
parent2978b3756cdc845697898e3b865a9791c7674d7b
libdvbv5: Simplify PAT handling

Coverity thinks that there's a resource leak by having a pgm
not being properly stored.

While I don't agree with Coverity, the code could be simplified,
and use just one pointer instead of two, in order to fill the
programs linked list.

That makes it easier to be analyzed by both automatic tools and
by manual inspection.

So, simplify it.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/libdvbv5/descriptors/pat.c