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 4ac74ab0a2066028bc0079bc6b7f322fc4256f1e..64d0dec364579da01a1278da2627d2a76f28eeb9 100644 (file)
@@ -688,7 +688,8 @@ int calendar_spec_from_string(const char *p, CalendarSpec **spec) {
                 if (r < 0)
                         goto fail;
 
                 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;
                 r = const_chain(1, &c->month);
                 if (r < 0)
                         goto fail;