~ubuntu-branches/ubuntu/quantal/curl/quantal-updates

« back to all changes in this revision

Viewing changes to lib/getenv.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.32 2008-09-12 11:18:17 yangtse Exp $
22
22
 ***************************************************************************/
23
23
 
24
24
#include "setup.h"
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