]> granicus.if.org Git - neomutt/commitdiff
No need to strdup the result of tigetstr (#682)
authorPietro Cerutti <gahr@gahr.ch>
Thu, 20 Jul 2017 14:16:47 +0000 (15:16 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Jul 2017 14:16:47 +0000 (15:16 +0100)
curs_main.c

index 904d977a0e9dfaa48a1af1558bf7a346d41529bf..1cfd657a650062e2f0c37923a3aa1baf198a6f19 100644 (file)
@@ -549,11 +549,11 @@ bool mutt_ts_capability(void)
   if (tcaps && tcaps != (char *) -1 && *tcaps)
   {
     /* update the static defns of tsl/fsl from terminfo */
-    tsl = safe_strdup(tcaps);
+    tsl = tcaps;
 
     tcaps = tigetstr("fsl");
     if (tcaps && tcaps != (char *) -1 && *tcaps)
-      fsl = safe_strdup(tcaps);
+      fsl = tcaps;
 
     return true;
   }