Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37740493
en ru br
Репозитории 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
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: 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
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin