Commit 7caba8dc authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Cleanup in fparse_string.

parent d9bf72de
......@@ -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, length);
if ( result->string == NULL )
{
kom_errno = KOM_OUT_OF_MEMORY;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment