Fossil SCM

cherry-picked [4295728159451e0d].

stephan 2012-07-16 14:37 trunk
Commit a7eb71475810af4edb06ddf5b21fef2300e8c4ad
1 file changed +2 -1
+2 -1
--- src/blob.c
+++ src/blob.c
@@ -701,11 +701,12 @@
701701
** Initialize a blob to be the content of a file. If the filename
702702
** is blank or "-" then read from standard input.
703703
**
704704
** Any prior content of the blob is discarded, not freed.
705705
**
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).
707708
*/
708709
int blob_read_from_file(Blob *pBlob, const char *zFilename){
709710
int size, got;
710711
FILE *in;
711712
if( zFilename==0 || zFilename[0]==0
712713
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button