]> granicus.if.org Git - sudo/commitdiff
store a copy of _PATH_SUDO_ASKPASS in def_askpass that is freeable
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 5 Mar 2008 21:18:06 +0000 (21:18 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 5 Mar 2008 21:18:06 +0000 (21:18 +0000)
defaults.c

index 5d0a0ffed08966d1951c7cb145e57fbfd24b845c..fc2008210694d976a8fe098707995053fe9bbad6 100644 (file)
@@ -424,7 +424,7 @@ init_defaults()
     def_env_editor = TRUE;
 #endif
 #ifdef _PATH_SUDO_ASKPASS
-    def_askpass = _PATH_SUDO_ASKPASS;
+    def_askpass = estrdup(_PATH_SUDO_ASKPASS);
 #endif
     def_env_reset = TRUE;
     def_set_logname = TRUE;