Skip to content
Snippets Groups Projects
Commit c965008d authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'main-cppcheck-2.17-CxxUtils' into 'main'

main-cppcheck-2.17-CxxUtils

See merge request !78578
parents a8442379 25fb7bf3
No related branches found
No related tags found
2 merge requests!78578main-cppcheck-2.17-CxxUtils,!76343Draft: MooTrackBuilder: Recalibrate NSW hits in refine method
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
*/
/**
......@@ -17,7 +17,6 @@
*
*/
//<<<<<< INCLUDES >>>>>>
#include "CxxUtils/SealCommon.h" // wlav
#include "CxxUtils/SealSharedLib.h" // wlav
......@@ -71,7 +70,6 @@
//namespace seal { wlav
namespace Athena { // wlav
//<<<<<< PRIVATE DEFINES >>>>>>
#ifndef SHLIB_UNSUPPORTED
# define SHLIB_UNSUPPORTED \
......@@ -145,12 +143,6 @@ enumModules (LPSTR name, ULONG base_address, PVOID context)
}
#endif
//<<<<<< PUBLIC FUNCTION DEFINITIONS >>>>>>
//<<<<<< MEMBER FUNCTION DEFINITIONS >>>>>>
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
std::string
SharedLibrary::path (void)
......@@ -173,13 +165,7 @@ SharedLibrary::path ATLAS_NOT_THREAD_SAFE (const std::string &path)
const char *pathvar = PATH;
if (pathvar) {
const int path_size = strlen(pathvar) + 1 + path.length () + 1;
char *var = (char *) malloc (path_size);
snprintf (var, path_size, "%s=%s", pathvar, path.c_str ());
putenv (var);
#if HAVE_COPYING_PUTENV
free (var);
#endif
setenv(pathvar, path.c_str(),1);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment