chiark / gitweb /
fsckd: Don't use strjoina on gettext() call
authorDidier Roche <didrocks@ubuntu.com>
Tue, 10 Mar 2015 07:58:23 +0000 (08:58 +0100)
committerTom Gundersen <teg@jklm.no>
Mon, 16 Mar 2015 17:30:20 +0000 (18:30 +0100)
src/fsckd/fsckd.c

index 3c587a3f2025358f424fbe0025691658933ce10a..f24715cee31d7a87c608e93bac1eee1601cc7eb5 100644 (file)
@@ -272,7 +272,7 @@ static int plymouth_send_message(int plymouth_fd, const char *message, bool upda
 }
 
 static int manager_send_plymouth_message(Manager *m, const char *message) {
-        const char *plymouth_cancel_message = NULL;
+        const char *plymouth_cancel_message = NULL, *l10n_cancel_message = NULL;
         int r;
 
         r = manager_connect_plymouth(m);
@@ -288,7 +288,8 @@ static int manager_send_plymouth_message(Manager *m, const char *message) {
 
                 m->plymouth_cancel_sent = true;
 
-                plymouth_cancel_message = strjoina("fsckd-cancel-msg:", _("Press Ctrl+C to cancel all filesystem checks in progress"));
+                l10n_cancel_message = _("Press Ctrl+C to cancel all filesystem checks in progress");
+                plymouth_cancel_message = strjoina("fsckd-cancel-msg:", l10n_cancel_message);
 
                 r = plymouth_send_message(m->plymouth_fd, plymouth_cancel_message, false);
                 if (r < 0)