From: Zbigniew Jędrzejewski-Szmek Date: Wed, 1 Apr 2026 15:31:18 +0000 (+0200) Subject: shared/options: extend comment X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4e0ff0874fb6128fc4bd0610e94029ce93b9454;p=thirdparty%2Fsystemd.git shared/options: extend comment --- diff --git a/src/shared/options.c b/src/shared/options.c index 853df0d38d2..e6b82fe34d0 100644 --- a/src/shared/options.c +++ b/src/shared/options.c @@ -238,7 +238,8 @@ char** option_parser_get_args(const OptionParser *state) { /* Returns positional args as a strv. * If "--" was found, it has been moved before state->positional_offset. * The array is only valid, i.e. clean without any options, after parsing - * has naturally finished. */ + * has naturally finished. The array that is returned is a slice of the + * original argv array, so it must not be freed or modified. */ assert(state->optind > 0); assert(state->optind == state->argc || state->parsing_stopped);