Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 4295728159451e0dde96226d2108b4aaa040c263 |
|---|---|
| Date: | 2012-07-16 14:36:30 |
| User: | stephan |
| Comment: | Minor doc correction. |
Tags And Properties
- branch=th1-query-api inherited from [c3b10e12a1]
- sym-th1-query-api inherited from [c3b10e12a1]
Changes
Changes to src/blob.c
698 698 699 /* 699 /* 700 ** Initialize a blob to be the content of a file. If the filename 700 ** Initialize a blob to be the content of a file. If the filename 701 ** is blank or "-" then read from standard input. 701 ** is blank or "-" then read from standard input. 702 ** 702 ** 703 ** Any prior content of the blob is discarded, not freed. 703 ** Any prior content of the blob is discarded, not freed. 704 ** 704 ** 705 ** Return the number of bytes read. Return -1 for an error. | 705 ** Return the number of bytes read. Calls fossil_panic() error (i.e. > 706 ** it exit()s and does not return). 706 */ 707 */ 707 int blob_read_from_file(Blob *pBlob, const char *zFilename){ 708 int blob_read_from_file(Blob *pBlob, const char *zFilename){ 708 int size, got; 709 int size, got; 709 FILE *in; 710 FILE *in; 710 if( zFilename==0 || zFilename[0]==0 711 if( zFilename==0 || zFilename[0]==0 711 || (zFilename[0]=='-' && zFilename[1]==0) ){ 712 || (zFilename[0]=='-' && zFilename[1]==0) ){ 712 return blob_read_from_channel(pBlob, stdin, -1); 713 return blob_read_from_channel(pBlob, stdin, -1);