diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-16 20:35:47 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-16 20:35:47 +0000 |
commit | 694499b2fc01927a5779309b31caf71df1107adc (patch) | |
tree | f926f2a4b1471e7ecaf4c31d548b3fe7b6e328ff /ace/INET_Addr.cpp | |
parent | 4a74ec8da792a561dfd894c6b31939f0b36d39ba (diff) | |
download | ATCD-694499b2fc01927a5779309b31caf71df1107adc.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/INET_Addr.cpp')
-rw-r--r-- | ace/INET_Addr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ace/INET_Addr.cpp b/ace/INET_Addr.cpp index fd058485a2a..736038c6d92 100644 --- a/ace/INET_Addr.cpp +++ b/ace/INET_Addr.cpp @@ -97,9 +97,9 @@ ACE_INET_Addr::string_to_addr (const char s[]) { ACE_TRACE ("ACE_INET_Addr::string_to_addr"); // Need to make a duplicate since we'll be overwriting the string. - char *t = ACE_OS::strdup (s); - if (t == 0) - return -1; + char *t; + + ACE_ALLOCATOR_RETURN (t, ACE_OS::strdup (s), -1) char *ip_addr = ACE_OS::strchr (t, ':'); int result; |