diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2019-08-26 19:36:22 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-08-27 11:56:32 +0200 |
commit | 199ba58bed17bfdf8a7cc68874add6d522687408 (patch) | |
tree | 375474acf62a318e027144afe8b0648a54d9a9bf /clients/cli/connections.c | |
parent | 68e8fe9419fa6358d862e0a5e8ff58c11deb4f3e (diff) | |
download | NetworkManager-lr/gsm-default-apn-part2.tar.gz |
cli: allow deleting the gsm.apnlr/gsm-default-apn-part2
Use "nmcli c modify -gsm.apn ''" to remove the APN.
Diffstat (limited to 'clients/cli/connections.c')
-rw-r--r-- | clients/cli/connections.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 0e42831c7a..01fd4edf65 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -4694,11 +4694,7 @@ get_value (const char **value, int *argc, char ***argv, const char *option, GErr return FALSE; } - /* Empty string will reset the value to default */ - if (**argv[0] == '\0') - *value = NULL; - else - *value = *argv[0]; + *value = *argv[0]; (*argc)--; (*argv)++; |