[PATCH 1/8] workaround fix for segfault with CHANNEL file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 utils/dvb/dvb-file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/utils/dvb/dvb-file.c b/utils/dvb/dvb-file.c
index eb269b4..e1f2195 100644
--- a/utils/dvb/dvb-file.c
+++ b/utils/dvb/dvb-file.c
@@ -141,7 +141,7 @@ struct dvb_file *parse_format_oneline(const char *fname,
 			}
 			if (table->size) {
 				for (j = 0; j < table->size; j++)
-					if (!strcasecmp(table->table[j], p))
+					if (!table->table[j] || !strcasecmp(table->table[j], p))
 						break;
 				if (j == table->size) {
 					sprintf(err_msg, "parameter %s invalid: %s",
-- 
1.7.2.5

--
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


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux