Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request #30 from abellgithub/master
Browse files Browse the repository at this point in the history
Eliminate warnings.
  • Loading branch information
hobu committed Apr 28, 2016
2 parents 9c34997 + 0878231 commit fb3e426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/points2grid.cpp
Expand Up @@ -318,7 +318,7 @@ int main(int argc, char **argv)
strncpy(inputURL, vm["data_file_url"].as<std::string>().c_str(), sizeof(inputURL));
}

if((inputName == NULL || !strcmp(inputName, "")) && (inputURL == NULL || !strcmp(inputURL, "")))
if (!strcmp(inputName, "") && !strcmp(inputURL, ""))
{
throw std::logic_error("you must specify a valid data file");
}
Expand Down Expand Up @@ -367,7 +367,7 @@ int main(int argc, char **argv)

#ifdef CURL_FOUND
// download file from URL, and set input name
if (!((inputURL == NULL || !strcmp(inputURL, "")))) {
if (strcmp(inputURL, "")) {

CURL *curl;
CURLcode res;
Expand Down

0 comments on commit fb3e426

Please sign in to comment.