mirror of
https://github.com/weechat/weechat.git
synced 2026-06-24 20:06:38 +02:00
Fix crash with version comparison (when loading plugin)
This commit is contained in:
+2
-2
@@ -347,12 +347,12 @@ util_weechat_version_cmp (char *version1, char *version2)
|
||||
}
|
||||
}
|
||||
ptr_v1 = next1;
|
||||
while (ptr_v1[0] && !isdigit (ptr_v1[0]))
|
||||
while (ptr_v1 && ptr_v1[0] && !isdigit (ptr_v1[0]))
|
||||
{
|
||||
ptr_v1++;
|
||||
}
|
||||
ptr_v2 = next2;
|
||||
while (ptr_v2[0] && !isdigit (ptr_v2[0]))
|
||||
while (ptr_v2 && ptr_v2[0] && !isdigit (ptr_v2[0]))
|
||||
{
|
||||
ptr_v2++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user