From 52cea818bf68f8a2d3c48d55d00c2f8b7da25e4c Mon Sep 17 00:00:00 2001 From: Daniel Hogan Date: Tue, 28 Mar 2017 22:21:18 -0600 Subject: [PATCH] Remove delete statement. When from_scratch is true, coordinates is not allocated. A separate if statement was added to handle the case when from_scratch is true that does not try to free coordinates. --- src/formats/nwchemformat.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/formats/nwchemformat.cpp b/src/formats/nwchemformat.cpp index 6f625ad5b..79298555f 100644 --- a/src/formats/nwchemformat.cpp +++ b/src/formats/nwchemformat.cpp @@ -232,11 +232,14 @@ static const char* OPTIMIZATION_END_PATTERN = " Optimization converged"; break; tokenize(vs,buffer); } - if ((from_scratch)||(i != natoms)) - { + if (from_scratch) + { + return; + } + if (i != natoms) { delete[] coordinates; return; - } + } molecule->AddConformer(coordinates); } ref='/guix/'>summaryrefslogtreecommitdiff
path: root/gnu/packages/libftdi.scm
AgeCommit message (Expand)Author
2023-09-14gnu: libftdi: Build API documentation....* gnu/packages/libftdi.scm (libftdi)[outputs]: Add "doc" output. [arguments]<#:configure-flags>: Add "-DDOCUMENTATION". <#:phases>: Add "install-documentation" phase. [native-inputs]: Add doxygen, graphviz. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Simon South
2023-09-14gnu: libftdi: Update to 1.5....* gnu/packages/patches/libftdi-fix-paths-when-FTDIPP-set.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/libftdi.scm (libftdi): Update to 1.5. [source]: Apply patch. [arguments]<#:configure-flags>: Add "-DFTDIPP", "-DPYTHON_BINDINGS". Signed-off-by: Ludovic Courtès <ludo@gnu.org> Simon South
2023-09-14gnu: libftdi: Build Python bindings....* gnu/packages/libftdi.scm (libftdi)[outputs]: Add "python". [arguments]<#:phases>: Add with "install-python-binding" phase. [native-inputs]: Add python, swig. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Simon South
2023-09-14gnu: libftdi: Build C++ bindings....Enabling the C++ bindings allows the test suite to be run, although this fails without access to the host's USB interface. * gnu/packages/libftdi.scm (libftdi)[arguments]: Add #:test-target, #:tests?. (inputs): Add boost. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Simon South
2023-09-14gnu: libftdi: Build ftdi_eeprom....* gnu/packages/libftdi.scm (libftdi)[arguments]<#:configure-flags>: Add "-DCMAKE_INSTALL_DOCDIR". [native-inputs]: Add with pkg-config. [inputs]: Add with libconfuse. [license]: Add GPL version 2. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Simon South
2023-09-14gnu: libftdi: Install libraries to /lib instead of /lib64....* gnu/packages/libftdi.scm (libftdi)[arguments]<#:configure-flags>: Add "-DLIB_SUFFIX". Signed-off-by: Ludovic Courtès <ludo@gnu.org> Simon South
2023-09-14gnu: libftdi: Do not build example programs....* gnu/packages/libftdi.scm (libftdi)[arguments]: Add with "-DEXAMPLES" configure flag. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Simon South
2023-09-14gnu: libftdi: Use HTTPS for package source....* gnu/packages/libftdi.scm (libftdi)[source]: Use HTTPS. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Simon South
2023-09-14gnu: libftdi: Update package style....* gnu/packages/libftdi.scm: Re-order #:use-module statements. (libftdi): Wrap long lines; reformat gently. [license]: Use "license:" prefix. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Simon South