1
0
Fork 0
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:
Liang Chang 2021-09-19 20:24:09 +08:00
parent f3949ff449
commit c2fd541ffc

View file

@ -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();