Skip to content

Commit

Permalink
Merge branch 'patch_pointers' into 'dev'
Browse files Browse the repository at this point in the history
Initialize pointers to NULL

See merge request epi2melabs/fastcat!37
  • Loading branch information
RenzoTale88 committed Sep 19, 2023
2 parents 795cf85 + e2a1f34 commit f1e6c29
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,14 @@ conda-mac-arm:
extends: .deploy-conda-mac-arm
before_script:
- *before-script

test-conda-arm:
stage: test
extends: .deploy-conda-linux-arm
variables:
UPLOAD: "no"
before_script:
- *prep-image
- *before-script
rules:
- if: $CI_COMMIT_BRANCH != null
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "htslib"]
path = htslib
url = https://github.com/samtools/htslib.git
url = https://github.com/samtools/htslib.git
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.14.1]
### Fixed
- Missing compilation of conda aarch64 package

## [v0.14.0]
### Added
- `bamstats --duplex` option allows to count the number of duplex reads and
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ endif

# we can't do pedantic because min/max macros lead to:
# "ISO C forbids braced-groups within expressions [-Werror=pedantic]"
ifeq ($(shell $(CC) --version | grep clag | wc -l), 0)
ifeq ($(shell $(CC) --version | grep clang | wc -l), 0)
WARNINGS = -Werror -Wall -Wextra -Wno-incompatible-pointer-types
else
WARNINGS = -Werror -Wall -Wextra -Wpedantic -Wno-language-extension-token -Wno-gnu-statement-expression -Wno-incompatible-function-pointer-types
Expand Down
4 changes: 2 additions & 2 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ requirements:
host:
- argp-standalone # [osx]
# linked to all the same stuff as bioconda builds
- bioconda::htslib
- nanoporetech::htslib =1.16
run:
- bioconda::htslib
- nanoporetech::htslib
test:
commands:
fastcat --help
Expand Down
2 changes: 1 addition & 1 deletion src/bamindex/index.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ char* generate_index_filename(const char* input_bam, const char* input_index) {
char* out_fn;

if(input_index != NULL) {
out_fn = malloc(strlen(input_index));
out_fn = calloc(sizeof(char), strlen(input_index) + 1);
if(out_fn == NULL) {
exit(EXIT_FAILURE);
}
Expand Down
2 changes: 1 addition & 1 deletion src/fastqcomments.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void destroy_read_meta(read_meta meta) {
read_meta parse_read_meta(kstring_t comment) {
read_meta meta = create_read_meta(&comment);

char *pch, *key, *value, *p1, *p2;
char *pch=NULL, *key=NULL, *value=NULL, *p1=NULL, *p2=NULL;
pch = strtok_r(meta->comment, " ", &p1);
while (pch != NULL) {
// split words on `=`
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

const char *argp_program_version = "0.14.0";
const char *argp_program_version = "0.14.1";

0 comments on commit f1e6c29

Please sign in to comment.