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

Eliminate warnings. #30

Merged
merged 1 commit into from Apr 28, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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