Changeset 40081 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 12, 2012 12:57:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMetrics.cpp
r33540 r40081 42 42 43 43 44 static bool isLastSlash(const char *str) 45 { 46 char c; 47 while ((c = *str++)) 48 { 49 if (c == ',') 50 break; 51 if (c == '/') 52 return false; 53 } 54 55 return true; 56 } 57 44 58 static char *toBaseMetricNames(const char *metricList) 45 59 { … … 54 68 if (c == ':') 55 69 fSkip = true; 56 else if (c == '/' && ++cSlashes == 2)70 else if (c == '/' && ++cSlashes >= 2 && isLastSlash(src)) 57 71 fSkip = true; 58 72 else if (c == ',')
Note:
See TracChangeset
for help on using the changeset viewer.