Explorar o código

Bugfix.

* src/checkpoint.c (checkpoint_compile_action): Add missing
`else'.
Sergey Poznyakoff %!s(int64=16) %!d(string=hai) anos
pai
achega
6901594ac4
Modificáronse 3 ficheiros con 7 adicións e 2 borrados
  1. 5 0
      ChangeLog
  2. 1 1
      src/checkpoint.c
  3. 1 1
      tests/listed01.at

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-10-05  Xavier Hienne <[email protected]> (tiny change)
+
+	* src/checkpoint.c (checkpoint_compile_action): Add missing
+	`else'. 
+
 2008-09-24  Sergey Poznyakoff  <[email protected]>
 
 	* NEWS: Update.

+ 1 - 1
src/checkpoint.c

@@ -80,7 +80,7 @@ checkpoint_compile_action (const char *str)
   
   if (strcmp (str, ".") == 0 || strcmp (str, "dot") == 0)
     alloc_action (cop_dot);
-  if (strcmp (str, "bell") == 0)
+  else if (strcmp (str, "bell") == 0)
     alloc_action (cop_bell);
   else if (strcmp (str, "echo") == 0)
     alloc_action (cop_echo);

+ 1 - 1
tests/listed01.at

@@ -39,7 +39,7 @@ tar --create \
 
 tar tf archive.1 || exit 1
 
-sleep 1
+sleep 2
 
 genfile --length 10240 --pattern zeros --file directory/file2