From 737471d6da8538f3aedd6f3a41c9e6aa3b340cb7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 27 Aug 2016 18:26:03 +0200 Subject: ... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cg-icc.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/cg-icc.c b/src/cg-icc.c index 5493f82..6d18dd4 100644 --- a/src/cg-icc.c +++ b/src/cg-icc.c @@ -49,6 +49,13 @@ char* const default_class = PKGNAME "::cg-icc::standard"; +/** + * The panhame of the selected ICC profile + */ +static const char* icc_filepath = NULL; + + + /** * Print usage information and exit */ @@ -121,9 +128,9 @@ int handle_args(int argc, char* argv[], char* method, char* site, q += (rule != NULL) && (!strcmp(rule, "?") || !strcmp(rule, "??")); for (; *crtcs; crtcs++) q += !strcmp(*crtcs, "?"); - if ((q > 1) || (xflag && ((argc > 0) || (prio != NULL)))) + if ((q > 1) || (xflag && ((argc > 0) || (prio != NULL))) || (argc > 1)) usage(); - /* TODO */ + icc_filepath = *argv; return 0; fail: saved_errno = errno; -- cgit v1.2.3-70-g09d2