diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2009-05-24 23:05:26 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-06-02 23:15:03 -0700 |
commit | a29ec1f1484902400f08b24ed777ea984923ffea (patch) | |
tree | 810a9222fbebfdf1e3aa231a08319d1207363659 /libglusterfsclient | |
parent | f888b3f5be4be893323b644dba0668ae3d40228e (diff) |
booster: Clean-up handling of log/fstab env variables
Handle two cases when deciding log/fstab file:
1. It turns out that that strdup or strlen doesnt actually
check for NULL before trying to do its thing with the string
so it seg-faults on seeing a NULL char pointer.
2. getenv can return an empty string if the
env var was exported as:
$ export GLUSTEFS_BOOSTER_LOG=
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfsclient')
0 files changed, 0 insertions, 0 deletions