daemon: Correctly handle '--discover' with no value.
authorLudovic Courtès <ludo@gnu.org>
Tue, 16 Mar 2021 21:34:57 +0000 (22:34 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 17 Mar 2021 11:03:23 +0000 (12:03 +0100)
commitbc3896db25c788c181c7bcd65754e7cd378e9d9f
treef5090474db857fa4376d69d27a6425f8cb4ac5b9
parentf194fbf50eecc9f38045520db0d1a719175172ae
daemon: Correctly handle '--discover' with no value.

Previously, we'd get:

  $ guix-daemon --discover
  error: basic_string::_M_construct null not valid

* nix/nix-daemon/guix-daemon.cc (parse_opt): Change second argument to
'settings.set' to properly handle case where ARG is NULL.
nix/nix-daemon/guix-daemon.cc