1
0
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:
Sebastien Helleu
2008-05-22 12:30:13 +02:00
parent ede921cc4d
commit 59853abbbb
+2 -2
View File
@@ -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++;
}