diff options
Diffstat (limited to 'extract/src/text.c')
-rw-r--r-- | extract/src/text.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/extract/src/text.c b/extract/src/text.c index e75e3e69..c035edeb 100644 --- a/extract/src/text.c +++ b/extract/src/text.c @@ -25,11 +25,11 @@ int extract_content_insert( const char* single = NULL; extract_astring_t out; extract_astring_init(&out); - + assert(single_name || mid_begin_name || mid_end_name); - + if (single_name) single = strstr(original, single_name); - + if (single) { outf("Have found single_name='%s', using in preference to mid_begin_name=%s mid_end_name=%s", @@ -81,11 +81,11 @@ int extract_content_insert( */ /* coverity[var_deref_model] */ if (extract_astring_cat(alloc, &out, mid_end)) goto end; - + *o_out = out.chars; out.chars = NULL; e = 0; - + end: if (e) { extract_astring_free(alloc, &out); @@ -93,4 +93,3 @@ int extract_content_insert( } return e; } - |