chiark / gitweb /
calendarspec: fix typo in "annually"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 25 Oct 2014 15:59:36 +0000 (11:59 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 25 Oct 2014 15:59:36 +0000 (11:59 -0400)
https://bugs.freedesktop.org/show_bug.cgi?id=85447

src/shared/calendarspec.c

index 4ac74ab..64d0dec 100644 (file)
@@ -688,7 +688,8 @@ int calendar_spec_from_string(const char *p, CalendarSpec **spec) {
                 if (r < 0)
                         goto fail;
 
-        } else if (strcaseeq(p, "anually") || strcaseeq(p, "yearly")) {
+        } else if (strcaseeq(p, "annually") || strcaseeq(p, "yearly")
+                   || strcaseeq(p, "anually") /* backwards compatibility */ ) {
                 r = const_chain(1, &c->month);
                 if (r < 0)
                         goto fail;