~ubuntu-branches/ubuntu/edgy/curl/edgy

« back to all changes in this revision

Viewing changes to lib/getenv.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-06-29 15:04:24 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060629150424-pn00qumt9sml8p4m
Tags: 7.15.4-1ubuntu1
Synchronize to Debian. Only change left: Removal of stunnel and
libdb4.2-dev build dependencies.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
 
8
 * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
9
9
 *
10
10
 * This software is licensed as described in the file COPYING, which
11
11
 * you should have received as part of this distribution. The terms
18
18
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
 * KIND, either express or implied.
20
20
 *
21
 
 * $Id: getenv.c,v 1.26 2004/11/02 10:12:23 bagder Exp $
 
21
 * $Id: getenv.c,v 1.28 2006/01/09 13:17:14 bagder Exp $
22
22
 ***************************************************************************/
23
23
 
24
24
#include "setup.h"
27
27
#include <stdlib.h>
28
28
#include <string.h>
29
29
 
30
 
#ifdef WIN32
31
 
#include <windows.h>
32
 
#endif
33
 
 
34
30
#ifdef VMS
35
31
#include <unixlib.h>
36
32
#endif
47
43
  return NULL;
48
44
#else
49
45
#ifdef WIN32
50
 
  /* This shit requires windows.h (HUGE) to be included */
51
46
  char env[MAX_PATH]; /* MAX_PATH is from windef.h */
52
47
  char *temp = getenv(variable);
53
48
  env[0] = '\0';