network: allow empty ip4 default gateway
authorAndreas Henriksson <andreas@fatal.se>
Wed, 12 Oct 2016 11:27:43 +0000 (13:27 +0200)
committerAndreas Henriksson <andreas@fatal.se>
Tue, 30 May 2017 20:29:04 +0000 (21:29 +0100)
commit92a8a301ded7a8dfbf5e30282cb731f8ff2f621f
treec676b50f61d6712811b6fb3e07a102a62b4c892c
parent9e0161f707401bbd8df4f5a975d5214a75174059
network: allow empty ip4 default gateway

Null-checking the text_gateway makes no sense as it has already been
dereferenced earlier. Instead check if it's the empty string and
treat that as not-an-error. Also prevent the empty string from
being set in default_gateway.

https://bugzilla.gnome.org/show_bug.cgi?id=708500

Gbp-Pq: Name git_allow_empty_ip4_gateway.patch
panels/network/connection-editor/ce-page-ip4.c