Clean-up: remove extra newline in bin-info.c
[babeltrace.git] / lib / bin-info.c
index 7048b73894ce7e6092e9cabc33fba76624610579..b76180c30b167c524579697d3d0369c399240698 100644 (file)
@@ -266,8 +266,7 @@ int bin_info_set_dwarf_info_build_id(struct bin_info *bin)
 
        dbg_dir = opt_debug_info_dir ? : DEFAULT_DEBUG_DIR;
 
-       /* 2 characters per byte printed in hex, +1 for '/' and +1 for
-        * '\0' */
+       /* 2 characters per byte printed in hex, +1 for '/' and +1 for '\0' */
        build_id_file_len = (2 * bin->build_id_len) + 1 +
                        strlen(BUILD_ID_SUFFIX) + 1;
        build_id_file = malloc(build_id_file_len);
@@ -518,7 +517,6 @@ error:
        return -1;
 }
 
-
 BT_HIDDEN
 void source_location_destroy(struct source_location *src_loc)
 {
@@ -885,6 +883,8 @@ int bin_info_lookup_dwarf_function_name(struct bin_info *bin, uint64_t addr,
 
        if (_func_name) {
                *func_name = _func_name;
+       } else {
+               goto error;
        }
 
        bt_dwarf_cu_destroy(cu);
This page took 0.034783 seconds and 4 git commands to generate.