projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
share/collection.js: Made variable names more consistent.
[collection4.git]
/
src
/
action_show_graph_json.c
diff --git
a/src/action_show_graph_json.c
b/src/action_show_graph_json.c
index
0820fb0
..
6d6e156
100644
(file)
--- a/
src/action_show_graph_json.c
+++ b/
src/action_show_graph_json.c
@@
-48,7
+48,7
@@
static void write_callback (__attribute__((unused)) void *ctx, /* {{{ */
int action_show_graph_json (void) /* {{{ */
{
int action_show_graph_json (void) /* {{{ */
{
- graph_config_t *cfg;
+ graph_config_t
const
*cfg;
yajl_gen_config handler_config;
yajl_gen handler;
yajl_gen_config handler_config;
yajl_gen handler;
@@
-70,10
+70,7
@@
int action_show_graph_json (void) /* {{{ */
/* alloc functions = */ NULL,
/* context = */ NULL);
if (handler == NULL)
/* alloc functions = */ NULL,
/* context = */ NULL);
if (handler == NULL)
- {
- graph_destroy (cfg);
return (-1);
return (-1);
- }
printf ("Content-Type: application/json\n");
printf ("Content-Type: application/json\n");
@@
-87,7
+84,6
@@
int action_show_graph_json (void) /* {{{ */
status = graph_to_json (cfg, handler);
status = graph_to_json (cfg, handler);
- graph_destroy (cfg);
yajl_gen_free (handler);
return (status);
yajl_gen_free (handler);
return (status);