Репозитории ALT
S: | 2.20-alt2.qa1 |
5.1: | 2.20-alt2 |
4.1: | 2.18-alt1 |
4.0: | 2.16-alt3 |
3.0: | 2.16-alt1 |
Группа :: Система/Основа
Пакет: which
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: which-rh-alt-fixes.patch
Скачать
Скачать
diff --git a/which/tilde/tilde.c b/which/tilde/tilde.c
index 1b76c9f..b59b502 100644
--- a/which/tilde/tilde.c
+++ b/which/tilde/tilde.c
@@ -196,7 +196,7 @@ tilde_expand (string)
int result_size, result_index;
result_index = result_size = 0;
- if (result = strchr (string, '~'))
+ if ((result = strchr (string, '~')))
result = (char *)xmalloc (result_size = (strlen (string) + 16));
else
result = (char *)xmalloc (result_size = (strlen (string) + 1));
diff --git a/which/which.c b/which/which.c
index 33a4178..fe2afda 100644
--- a/which/which.c
+++ b/which/which.c
@@ -552,7 +552,7 @@ int main(int argc, char *argv[])
while (fgets(buf, sizeof(buf), stdin))
{
int looks_like_function_start = 0;
- int function_start_has_declare;
+ int function_start_has_declare = 0;
if (read_functions)
{
// bash version 2.0.5a and older output a pattern for `str' like