summaryrefslogtreecommitdiffstats
path: root/support/export/nfsctl.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2010-04-23 12:08:49 -0400
committerSteve Dickson <steved@redhat.com>2010-04-23 12:12:03 -0400
commitaa4b66b12b631885ed85f3ebe97e68b033407178 (patch)
treea0b08cd5974f183aa439ec54a608a3dc50a3a192 /support/export/nfsctl.c
parent5d954d871fb265af584faef5df6e2e7e6ada7c3b (diff)
downloadnfs-utils-aa4b66b12b631885ed85f3ebe97e68b033407178.tar.gz
nfs-utils-aa4b66b12b631885ed85f3ebe97e68b033407178.tar.xz
nfs-utils-aa4b66b12b631885ed85f3ebe97e68b033407178.zip
libexport.a: Allow m_hostname allocation to fail instead of exit
Clean up: Replace xstrdup() with strdup(3) in client_init(), to prevent the process from exiting if the memory allocation fails. Note that both of client_init()'s callers set m_hostname equal to NULL before calling, thus the extra free(3) at the top of client_init() is unneeded. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/export/nfsctl.c')
0 files changed, 0 insertions, 0 deletions