Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix pointer -> char (NUL) comparisons in dvr_rec and mpegts/scanfile.
  • Loading branch information
KyleSanderson authored and perexg committed Jun 27, 2015
1 parent fe75fa0 commit 6bf1aba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dvr/dvr_rec.c
Expand Up @@ -539,7 +539,7 @@ pvr_generate_filename(dvr_entry_t *de, const streaming_start_t *ss)
return -1;

cfg = de->de_config;
if (cfg->dvr_storage == NULL || cfg->dvr_storage == '\0')
if (cfg->dvr_storage == NULL || *(cfg->dvr_storage) == '\0')
return -1;

localtime_r(&de->de_start, &tm);
Expand Down
2 changes: 1 addition & 1 deletion src/input/mpegts/scanfile.c
Expand Up @@ -374,7 +374,7 @@ scanfile_load_dvbv5 ( scanfile_network_t *net, char *line, fb_file *fp )

/* validity check for [text] */
s = str_trim(line);
if (s == '\0' || s[strlen(s) - 1] != ']')
if (*s == '\0' || s[strlen(s) - 1] != ']')
return 1;

l = htsmsg_create_map();
Expand Down

0 comments on commit 6bf1aba

Please sign in to comment.