mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
DtMmdb: Initialize "oid_in_string_buf" to 0 to ensure "get_oid_2" returns a
correct "oid".
This commit is contained in:
parent
f3949ff449
commit
c2fd541ffc
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ char* get_oid_2(info_lib* infolib_ptr, char* base_str, char* locator)
|
|||
const char *this_node_locator = x.locator();
|
||||
|
||||
if ( strcmp( this_node_locator, locator) == 0 ) {
|
||||
memset(oid_in_string_buf, 0, BUFSIZ);
|
||||
ostringstream strout(oid_in_string_buf, ios::out);
|
||||
x.its_oid().asciiOut(strout);
|
||||
int len = strout.str().size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue