Skip to content

Commit

Permalink
Added missing include
Browse files Browse the repository at this point in the history
  • Loading branch information
EduMenges committed Aug 14, 2024
1 parent 6007ee4 commit f4af5d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ Testing
# Autogenerated Build Prep artifacts
util/build_prep/*/prep.sh

# Autogenerated Tooling
#.clang-format
# clangd
.cache
3 changes: 2 additions & 1 deletion src/GeniusSDK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <boost/exception/all.hpp>
#include <string>
#include <cstring>
#include <fstream>

class JsonError : public boost::exception
{
Expand Down Expand Up @@ -83,7 +84,7 @@ std::shared_ptr<sgns::GeniusNode> GeniusNodeInstance;
GNUS_VISIBILITY_DEFAULT GNUS_EXPORT const char *GeniusSDKInit( const char *base_path )
{
std::string path = "";
if ( base_path )
if ( base_path != nullptr )
{
path.assign( base_path );
}
Expand Down

0 comments on commit f4af5d5

Please sign in to comment.