Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
epggrab: internal grabber - improve extra args check
  • Loading branch information
perexg committed Nov 8, 2015
1 parent 301c573 commit 0a73d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/epggrab/module.c
Expand Up @@ -348,7 +348,7 @@ char *epggrab_module_grab_spawn ( void *m )
tvhlog(LOG_INFO, mod->id, "grab %s", mod->path);

/* Extra arguments */
if (mod->args) {
if (mod->args && mod->args[0]) {
path = alloca(strlen(mod->path) + strlen(mod->args) + 2);
strcpy(path, mod->path);
strcat(path, " ");
Expand Down

1 comment on commit 0a73d7f

@cleanrock
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My test of this was good, thanks.
You may want to improve the Executing trace to include args:
[ INFO] spawn: Executing "/usr/bin/vendor_perl/tv_grab_se_tvzon"

You can close https://tvheadend.org/issues/3280 .

Please sign in to comment.