Re: [PATCH 3/7 v2] git_extract_argv0_path(): Move check for valid argv0 from caller to callee
On Sonntag, 18. Januar 2009, Steffen Prohaska wrote:
> This simplifies the calling code.
But it could really be squashed into the previous patch, after fixing...
Show 8 quoted lines
> @@ -23,6 +23,9 @@ const char *system_path(const char *path)
>
> const char *git_extract_argv0_path(const char *argv0)
> {
> + if (!argv0 || !*argv0)
> + return 0;
> +
> const char *slash = argv0 + strlen(argv0);... this declaration after statement.
-- Hannes