Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: fix another crash caused by formatter code
  • Loading branch information
perexg committed Feb 23, 2016
1 parent 5e1dc45 commit cf7483d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dvr/dvr_rec.c
Expand Up @@ -289,7 +289,7 @@ static const char *
dvr_do_prefix(const char *id, const char *s, char *tmp, size_t tmplen)
{
if (id[0] == '?') {
if (*s >= '0' && *s <= '9') {
if (s != NULL && *s >= '0' && *s <= '9') {
char *endptr;
long l = strtol(s, &endptr, 10);
if (l && tmplen > l)
Expand Down

0 comments on commit cf7483d

Please sign in to comment.