- Timestamp:
- Sep 25, 2009 1:40:08 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/hgcmsvc.h
r21669 r23315 202 202 int rc = getBuffer((void **)&pch, &cb); 203 203 if (RT_FAILURE(rc)) 204 { 205 *ppch = NULL; 206 *pcb = 0; 204 207 return rc; 208 } 205 209 rc = RTStrValidateEncodingEx(pch, cb, 206 210 RTSTR_VALIDATE_ENCODING_ZERO_TERMINATED); -
trunk/src/VBox/HostServices/GuestProperties/service.cpp
r21629 r23315 509 509 { 510 510 int rc = VINF_SUCCESS; 511 const char *pcszName ;511 const char *pcszName = NULL; /* shut up gcc */ 512 512 char *pchBuf; 513 513 uint32_t cchName, cchBuf; … … 585 585 { 586 586 int rc = VINF_SUCCESS; 587 const char *pcszName, *pcszValue, *pcszFlags = NULL; 587 const char *pcszName = NULL; /* shut up gcc */ 588 const char *pcszValue = NULL; /* ditto */ 589 const char *pcszFlags = NULL; 588 590 uint32_t cchName, cchValue, cchFlags = 0; 589 591 uint32_t fFlags = NILFLAG; … … 687 689 { 688 690 int rc = VINF_SUCCESS; 689 const char *pcszName ;691 const char *pcszName = NULL; /* shut up gcc */ 690 692 uint32_t cbName; 691 693 … … 695 697 * Check the user-supplied parameters. 696 698 */ 697 if ( (cParms != 1) /* Hardcoded value as the next lines depend on it. */698 || RT_FAILURE(paParms[0].getString(&pcszName, &cbName)) /* name */699 if ( (cParms == 1) /* Hardcoded value as the next lines depend on it. */ 700 && RT_SUCCESS(paParms[0].getString(&pcszName, &cbName)) /* name */ 699 701 ) 702 rc = validateName(pcszName, cbName); 703 else 700 704 rc = VERR_INVALID_PARAMETER; 701 if (RT_SUCCESS(rc))702 rc = validateName(pcszName, cbName);703 705 704 706 /* … … 901 903 { 902 904 int rc = VINF_SUCCESS; 903 char *pszPatterns, *pchBuf; 904 uint32_t cchPatterns = 0, cchBuf = 0; 905 char *pszPatterns = NULL; /* shut up gcc */ 906 char *pchBuf; 907 uint32_t cchPatterns = 0; 908 uint32_t cchBuf = 0; 905 909 uint64_t u64Timestamp; 906 910
Note:
See TracChangeset
for help on using the changeset viewer.