diff options
Diffstat (limited to 'set-contact-addresses.c')
-rw-r--r-- | set-contact-addresses.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/set-contact-addresses.c b/set-contact-addresses.c index 9c50637..ff40342 100644 --- a/set-contact-addresses.c +++ b/set-contact-addresses.c @@ -129,6 +129,9 @@ main(int argc, char *argv[]) if (lookup_location && parse_coord(lookup_location, &flat, &lat_min, &lat_max, &flon, &lon_min, &lon_max)) usage(); + if (argc != 1 || !*argv[0] || strchr(argv[0], '/')) + usage(); + if (remove == edit) { if (edit) usage(); @@ -138,9 +141,6 @@ main(int argc, char *argv[]) if (add) edit = 0; - if (argc != 1 || !*argv[0] || strchr(argv[0], '/')) - usage(); - errno = 0; user = getpwuid(getuid()); if (!user) |