diff options
author | Jason Riedy <ejr@cs.berkeley.edu> | 2005-08-23 13:52:01 -0700 |
---|---|---|
committer | Jason Riedy <ejr@cs.berkeley.edu> | 2005-08-23 20:41:12 -0700 |
commit | e72a7d45dc67afa1328750d401ddd4dbeb2131d9 (patch) | |
tree | 72db691c81402c4e498a9236eeb3c316dbf0b1eb /fsck-cache.c | |
parent | 3cd6ecda4a02e943934885910feeba957b730123 (diff) | |
download | git-e72a7d45dc67afa1328750d401ddd4dbeb2131d9.tar.gz |
Replace unsetenv() and setenv() with older putenv().
Solaris 8 doesn't have the newer unsetenv() and setenv()
functions, so replace them with putenv(). The one use of
unsetenv() in fsck-cache.c now sets GIT_ALTERNATE_OBJECT_
DIRECTORIES to the empty string. Every place that var
is used, NULLs are also replaced with empty strings, so
it's ok.
Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
Diffstat (limited to 'fsck-cache.c')
-rw-r--r-- | fsck-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck-cache.c b/fsck-cache.c index ca24a1b844..e53d01a40f 100644 --- a/fsck-cache.c +++ b/fsck-cache.c @@ -454,7 +454,7 @@ int main(int argc, char **argv) if (standalone && check_full) die("Only one of --standalone or --full can be used."); if (standalone) - unsetenv("GIT_ALTERNATE_OBJECT_DIRECTORIES"); + putenv("GIT_ALTERNATE_OBJECT_DIRECTORIES="); fsck_head_link(); fsck_object_dir(get_object_directory()); |