chiark / gitweb /
Fix segmentation fault with --html
authorJonathan David Amery <jdamery@ysolde.ucam.org>
Thu, 14 Mar 2013 13:51:27 +0000 (13:51 +0000)
committerRichard Kettlewell <rjk@terraraq.org.uk>
Thu, 14 Mar 2013 14:02:28 +0000 (14:02 +0000)
src/rsbackup.cc

index ae3c7fc..7c7a8c0 100644 (file)
@@ -105,7 +105,7 @@ int main(int argc, char **argv) {
       if(command.text || command.email)
         d.renderText(textStream);
       if(command.html) {
-        if(*command.text == "-") {
+        if(*command.html == "-") {
           IO::out.write(htmlStream.str());
         } else {
           IO f;