Bug 305992 - nsIVersionComparator broken in some circumstances (UMR) - patch by Justin Bradford <jabradford@gmail.com> r=shaver+me a=shaver
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@179048 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -72,7 +72,7 @@ interface nsIVersionComparator : nsISupports
|
||||
* @param B The second version
|
||||
* @returns < 0 if A < B
|
||||
* = 0 if A == B
|
||||
* > 0 if B > A
|
||||
* > 0 if A > B
|
||||
*/
|
||||
long compare(in ACString A, in ACString B);
|
||||
};
|
||||
|
||||
@@ -62,6 +62,7 @@ ParseVP(char *part, VersionPart &result)
|
||||
char *dot;
|
||||
|
||||
if (!part) {
|
||||
result.numA = 0;
|
||||
result.strB = nsnull;
|
||||
result.strBlen = 0;
|
||||
result.numC = 0;
|
||||
|
||||
Reference in New Issue
Block a user