Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
7caba8dc
Commit
7caba8dc
authored
Jun 13, 1991
by
Per Cederqvist
Browse files
Cleanup in fparse_string.
parent
d9bf72de
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/ram-parse.c
View file @
7caba8dc
...
...
@@ -18,6 +18,7 @@
#include
<string.h>
#include
<time.h>
#include
"lyskomd.h"
#include
"s-string.h"
#include
<kom-types.h>
#include
<kom-errno.h>
#include
<services.h>
...
...
@@ -831,12 +832,9 @@ extern Success
fparse_string
(
FILE
*
fp
,
String
*
result
)
{
#if 0
String_size i;
int c;
#endif
result
->
len
=
fparse_long
(
fp
);
String_size
length
;
length
=
fparse_long
(
fp
);
if
(
getc
(
fp
)
!=
'H'
)
{
...
...
@@ -846,8 +844,8 @@ fparse_string(FILE *fp,
return
FAILURE
;
}
result
->
string
=
REALLOC
(
result
->
string
,
result
->
len
);
s_size_crea_str
(
result
,
len
gth
);
if
(
result
->
string
==
NULL
)
{
kom_errno
=
KOM_OUT_OF_MEMORY
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment