Fossil SCM
cherry-picked [4295728159451e0d].
Commit
a7eb71475810af4edb06ddf5b21fef2300e8c4ad
Parent
9f83e033a2304a9…
1 file changed
+2
-1
+2
-1
| --- src/blob.c | ||
| +++ src/blob.c | ||
| @@ -701,11 +701,12 @@ | ||
| 701 | 701 | ** Initialize a blob to be the content of a file. If the filename |
| 702 | 702 | ** is blank or "-" then read from standard input. |
| 703 | 703 | ** |
| 704 | 704 | ** Any prior content of the blob is discarded, not freed. |
| 705 | 705 | ** |
| 706 | -** Return the number of bytes read. Return -1 for an error. | |
| 706 | +** Return the number of bytes read. Calls fossil_panic() error (i.e. | |
| 707 | +** it exit()s and does not return). | |
| 707 | 708 | */ |
| 708 | 709 | int blob_read_from_file(Blob *pBlob, const char *zFilename){ |
| 709 | 710 | int size, got; |
| 710 | 711 | FILE *in; |
| 711 | 712 | if( zFilename==0 || zFilename[0]==0 |
| 712 | 713 |
| --- src/blob.c | |
| +++ src/blob.c | |
| @@ -701,11 +701,12 @@ | |
| 701 | ** Initialize a blob to be the content of a file. If the filename |
| 702 | ** is blank or "-" then read from standard input. |
| 703 | ** |
| 704 | ** Any prior content of the blob is discarded, not freed. |
| 705 | ** |
| 706 | ** Return the number of bytes read. Return -1 for an error. |
| 707 | */ |
| 708 | int blob_read_from_file(Blob *pBlob, const char *zFilename){ |
| 709 | int size, got; |
| 710 | FILE *in; |
| 711 | if( zFilename==0 || zFilename[0]==0 |
| 712 |
| --- src/blob.c | |
| +++ src/blob.c | |
| @@ -701,11 +701,12 @@ | |
| 701 | ** Initialize a blob to be the content of a file. If the filename |
| 702 | ** is blank or "-" then read from standard input. |
| 703 | ** |
| 704 | ** Any prior content of the blob is discarded, not freed. |
| 705 | ** |
| 706 | ** Return the number of bytes read. Calls fossil_panic() error (i.e. |
| 707 | ** it exit()s and does not return). |
| 708 | */ |
| 709 | int blob_read_from_file(Blob *pBlob, const char *zFilename){ |
| 710 | int size, got; |
| 711 | FILE *in; |
| 712 | if( zFilename==0 || zFilename[0]==0 |
| 713 |