Changeset 7bf51d5 for util.c


Ignore:
Timestamp:
May 17, 2009, 8:31:29 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
7c09b21
Parents:
d73e3af
Message:
Correctly read the BARNOWL_DATA_DIR environment variable.

getenv() just returns the environment variable value, not
"KEY=value". So there's no need to strchr for '=' after reading the
BARNOWL_DATA_DIR, if it's set.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    r4b17a6c r7bf51d5  
    670670  char * datadir = getenv("BARNOWL_DATA_DIR");
    671671  if(datadir != NULL)
    672     return strchr(datadir, '=') + 1;
     672    return datadir;
    673673  return DATADIR;
    674674}
Note: See TracChangeset for help on using the changeset viewer.