Changeset 25942 in vbox for trunk/src/VBox/Main/freebsd
- Timestamp:
- Jan 20, 2010 5:26:22 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56784
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/freebsd/HostHardwareFreeBSD.cpp
r25728 r25942 341 341 int rc = VINF_SUCCESS; 342 342 bool success = false; 343 char *pszFreeMe = RTEnvDupEx(RTENV_DEFAULT, pcszVar); 343 344 344 345 try 345 346 { 346 const char *pcszCurrent = RTEnvGet (pcszVar);347 const char *pcszCurrent = pszFreeMe; 347 348 while (pcszCurrent && *pcszCurrent != '\0') 348 349 { … … 357 358 if (RT_SUCCESS(RTPathReal(szPath, szReal, sizeof(szReal)))) 358 359 { 360 szUdi[0] = '\0'; /** @todo r=bird: missing a call to devValidateDevice() here and szUdi wasn't 361 * initialized because of that. Need proper fixing. */ 359 362 pList->push_back(DriveInfo(szReal, szUdi, szDesc)); 360 363 success = true; … … 369 372 rc = VERR_NO_MEMORY; 370 373 } 371 LogFlowFunc (("rc=%Rrc, success=%d\n", rc, success)); 374 RTStrFree(pszFreeMe); 375 LogFlowFunc(("rc=%Rrc, success=%d\n", rc, success)); 372 376 return rc; 373 377 }
Note:
See TracChangeset
for help on using the changeset viewer.