~ubuntu-branches/ubuntu/natty/curl/natty-proposed

« back to all changes in this revision

Viewing changes to lib/getenv.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-05-24 21:12:19 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (3.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20090524211219-7jgcwuhl04ixuqsm
Tags: upstream-7.19.5
ImportĀ upstreamĀ versionĀ 7.19.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
 
8
 * Copyright (C) 1998 - 2009, 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.31 2007-11-07 09:21:35 bagder Exp $
 
21
 * $Id: getenv.c,v 1.33 2009-04-21 11:46:16 yangtse Exp $
22
22
 ***************************************************************************/
23
23
 
24
24
#include "setup.h"
32
32
#endif
33
33
 
34
34
#include <curl/curl.h>
35
 
#include "memory.h"
 
35
#include "curl_memory.h"
36
36
 
37
37
#include "memdebug.h"
38
38
 
53
53
  char *env = getenv(variable);
54
54
#ifdef VMS
55
55
  if(env && strcmp("HOME",variable) == 0)
56
 
    env = decc$translate_vms(env);
 
56
    env = decc_translate_vms(env);
57
57
#endif
58
58
  return (env && env[0])?strdup(env):NULL;
59
59
#endif