[Rt-commit] rt branch, 4.0/rest-ticket-content-type, updated. rt-4.0.6-171-g4976168

? sunnavy sunnavy at bestpractical.com
Thu Jun 14 02:34:42 EDT 2012


The branch, 4.0/rest-ticket-content-type has been updated
       via  4976168b64fd33d05b992c633324c00f5ed97b53 (commit)
      from  0442cb2327384cc58ec6c9066a603b370cec16a5 (commit)

Summary of changes:
 bin/rt.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 4976168b64fd33d05b992c633324c00f5ed97b53
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Jun 14 14:34:33 2012 +0800

    uninitialized warning fix

diff --git a/bin/rt.in b/bin/rt.in
index fab3f4a..86b4074 100755
--- a/bin/rt.in
+++ b/bin/rt.in
@@ -659,7 +659,7 @@ sub edit {
 EDIT:
     # We'll let the user edit the form before sending it to the server,
     # unless we have enough information to submit it non-interactively.
-    if ( $type eq 'ticket' && $text !~ /^Content-Type:/m ) {
+    if ( $type && $type eq 'ticket' && $text !~ /^Content-Type:/m ) {
         $content_type ||= 'text/plain';
         $text .= "Content-Type: $content_type\n";
     }

-----------------------------------------------------------------------


More information about the Rt-commit mailing list