mirror of https://github.com/ecmwf/eccodes.git
Initialisation
This commit is contained in:
parent
935a881f42
commit
3f565b5c16
|
@ -19,7 +19,7 @@ int opt_write = 0; /* If 1 write handle to file */
|
||||||
|
|
||||||
static int encode_file(char *template_file, char *output_file)
|
static int encode_file(char *template_file, char *output_file)
|
||||||
{
|
{
|
||||||
FILE *in, *out;
|
FILE *in, *out=NULL;
|
||||||
codes_handle *source_handle = NULL;
|
codes_handle *source_handle = NULL;
|
||||||
const void *buffer = NULL;
|
const void *buffer = NULL;
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
|
|
|
@ -18,7 +18,7 @@ int opt_write = 0; /* If 1 write handle to file */
|
||||||
|
|
||||||
static int encode_file(char *template_file, char *output_file)
|
static int encode_file(char *template_file, char *output_file)
|
||||||
{
|
{
|
||||||
FILE *in, *out;
|
FILE *in, *out=NULL;
|
||||||
grib_handle *source_handle = NULL;
|
grib_handle *source_handle = NULL;
|
||||||
const void *buffer = NULL;
|
const void *buffer = NULL;
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
|
|
Loading…
Reference in New Issue