recv: Don't set argv to NULL when parsing receiver args.
authorAndre Noll <maan@systemlinux.org>
Sun, 31 Jan 2010 22:16:15 +0000 (23:16 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 31 Jan 2010 22:16:15 +0000 (23:16 +0100)
commit70f527312e613fd89be88177dc2a44ad24b2d27c
treea0235ba05c7de2e80426ee8d1d4174188fe3f0fe
parent4e84e9b35b8e45314d779ff6353e826ebda31483
recv: Don't set argv to NULL when parsing receiver args.

This leads to error messages like

(null): unrecognized option '--foo'

in case an invalid option was given. Fix it by setting argv[0] to
the receiver name instead.

Thanks to Gerrit Renker for pointing out this bug.
recv_common.c