]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/options: extend comment
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Wed, 1 Apr 2026 15:31:18 +0000 (17:31 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Fri, 3 Apr 2026 10:30:41 +0000 (12:30 +0200)
src/shared/options.c

index 853df0d38d2f1094498d338f9ee63a68b54968ad..e6b82fe34d07cbaee378959664cb76e675cdfa3e 100644 (file)
@@ -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);