code style check and fix
This commit is contained in:
@@ -57,7 +57,8 @@ mapping :: = MAPPING - START(node node) * MAPPING - END
|
||||
|
||||
#define VALUE_TRUE_LOWERCASE_STRING "true"
|
||||
|
||||
static char *load_file_content(const char *path) {
|
||||
static char *load_file_content(const char *path)
|
||||
{
|
||||
|
||||
static char fname[] = "load_file_content()";
|
||||
|
||||
@@ -73,8 +74,7 @@ static char *load_file_content(const char *path) {
|
||||
long s = ftell(fh);
|
||||
rewind(fh);
|
||||
buffer = malloc(s);
|
||||
if ( buffer != NULL )
|
||||
{
|
||||
if (buffer != NULL) {
|
||||
fread(buffer, s, 1, fh);
|
||||
}
|
||||
fclose(fh);
|
||||
@@ -1119,4 +1119,3 @@ int kubeyaml_save_kubeconfig(const kubeconfig_t * kubeconfig)
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user