Fossil SCM
Fix the /announce/test2 feature so that it works without asserting.
Commit
ea4ccfdc2df9d0b73b6c15f265a76a8d3864a61f4f5677b8002d6dc71c7282d9
Parent
b6892ccdd6f8f62…
1 file changed
+1
-1
+1
-1
| --- src/alerts.c | ||
| +++ src/alerts.c | ||
| @@ -794,17 +794,17 @@ | ||
| 794 | 794 | fossil_print("Sending email\n"); |
| 795 | 795 | } |
| 796 | 796 | if( fossil_strcmp(p->zDest, "off")==0 ){ |
| 797 | 797 | return; |
| 798 | 798 | } |
| 799 | + blob_init(&all, 0, 0); | |
| 799 | 800 | if( fossil_strcmp(p->zDest, "blob")==0 ){ |
| 800 | 801 | pOut = &p->out; |
| 801 | 802 | if( blob_size(pOut) ){ |
| 802 | 803 | blob_appendf(pOut, "%.72c\n", '='); |
| 803 | 804 | } |
| 804 | 805 | }else{ |
| 805 | - blob_init(&all, 0, 0); | |
| 806 | 806 | pOut = &all; |
| 807 | 807 | } |
| 808 | 808 | blob_append(pOut, blob_buffer(pHdr), blob_size(pHdr)); |
| 809 | 809 | if( p->zFrom==0 || p->zFrom[0]==0 ){ |
| 810 | 810 | return; /* email-self is not set. Error will be reported separately */ |
| 811 | 811 |
| --- src/alerts.c | |
| +++ src/alerts.c | |
| @@ -794,17 +794,17 @@ | |
| 794 | fossil_print("Sending email\n"); |
| 795 | } |
| 796 | if( fossil_strcmp(p->zDest, "off")==0 ){ |
| 797 | return; |
| 798 | } |
| 799 | if( fossil_strcmp(p->zDest, "blob")==0 ){ |
| 800 | pOut = &p->out; |
| 801 | if( blob_size(pOut) ){ |
| 802 | blob_appendf(pOut, "%.72c\n", '='); |
| 803 | } |
| 804 | }else{ |
| 805 | blob_init(&all, 0, 0); |
| 806 | pOut = &all; |
| 807 | } |
| 808 | blob_append(pOut, blob_buffer(pHdr), blob_size(pHdr)); |
| 809 | if( p->zFrom==0 || p->zFrom[0]==0 ){ |
| 810 | return; /* email-self is not set. Error will be reported separately */ |
| 811 |
| --- src/alerts.c | |
| +++ src/alerts.c | |
| @@ -794,17 +794,17 @@ | |
| 794 | fossil_print("Sending email\n"); |
| 795 | } |
| 796 | if( fossil_strcmp(p->zDest, "off")==0 ){ |
| 797 | return; |
| 798 | } |
| 799 | blob_init(&all, 0, 0); |
| 800 | if( fossil_strcmp(p->zDest, "blob")==0 ){ |
| 801 | pOut = &p->out; |
| 802 | if( blob_size(pOut) ){ |
| 803 | blob_appendf(pOut, "%.72c\n", '='); |
| 804 | } |
| 805 | }else{ |
| 806 | pOut = &all; |
| 807 | } |
| 808 | blob_append(pOut, blob_buffer(pHdr), blob_size(pHdr)); |
| 809 | if( p->zFrom==0 || p->zFrom[0]==0 ){ |
| 810 | return; /* email-self is not set. Error will be reported separately */ |
| 811 |