mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Fri Mar 31 09:10:50 1995 Adam Fedor <fedor@boulder.colorado.edu>
* NXStringTable.m (readFromFile:): Return the return value from readFromSteam so that errors get passed along. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@229 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
16ae846a4f
commit
77842ce1b9
1 changed files with 3 additions and 2 deletions
|
@ -111,14 +111,15 @@ char *NXscan_string;
|
|||
|
||||
- readFromFile:(const char *)fileName
|
||||
{
|
||||
id returnVal;
|
||||
FILE *stream;
|
||||
if ((stream = fopen(fileName, "r")) == NULL) {
|
||||
perror("Error (NXStringTable)");
|
||||
return nil;
|
||||
}
|
||||
[self readFromStream:stream];
|
||||
returnVal = [self readFromStream:stream];
|
||||
fclose(stream);
|
||||
return self;
|
||||
return returnVal;
|
||||
}
|
||||
|
||||
- writeToStream:(FILE *)stream
|
||||
|
|
Loading…
Reference in a new issue