Use strdup to copy environment strings into our settings structure.
commit8bcf1ed4d6a9dfcb196682b551f0ebb00cf93fc8
authorPeter Clifton <pcjc2@cam.ac.uk>
Wed, 24 Feb 2010 00:04:11 +0000 (24 00:04 +0000)
committerPeter Clifton <pcjc2@cam.ac.uk>
Wed, 24 Feb 2010 00:04:11 +0000 (24 00:04 +0000)
treea27f9216cafd665edbfe0bd9a074521b8f0d3949
parentd8be4844b96e768c3a872f17d79b89bf6a5c84d8
Use strdup to copy environment strings into our settings structure.

getenv returns a const char * which is part of the environment and must
not be free'd.
src/main.c