summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-07-14 15:54:56 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-07-14 15:54:56 -0700
commitf9f7de0ec7015a82b6c8f15cfbf13f52936df6d2 (patch)
treec0103bce28b522a4e3e121983acf496a010bcb02
parentd27c14af4858b07aae9f1ee73449073bd817f474 (diff)
downloadinfinitytier-f9f7de0ec7015a82b6c8f15cfbf13f52936df6d2.tar.gz
infinitytier-f9f7de0ec7015a82b6c8f15cfbf13f52936df6d2.zip
Networks don't need their ID as a default name.
-rw-r--r--controller/SqliteNetworkController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/SqliteNetworkController.cpp b/controller/SqliteNetworkController.cpp
index 0d1ab579..6841c24a 100644
--- a/controller/SqliteNetworkController.cpp
+++ b/controller/SqliteNetworkController.cpp
@@ -801,7 +801,7 @@ unsigned int SqliteNetworkController::handleControlPlaneHttpPOST(
sqlite3_reset(_sCreateNetwork);
sqlite3_bind_text(_sCreateNetwork,1,nwids,16,SQLITE_STATIC);
- sqlite3_bind_text(_sCreateNetwork,2,nwids,16,SQLITE_STATIC); // default name, will be changed below if a name is specified in JSON
+ sqlite3_bind_text(_sCreateNetwork,2,"",0,SQLITE_STATIC);
sqlite3_bind_int64(_sCreateNetwork,3,(long long)OSUtils::now());
if (sqlite3_step(_sCreateNetwork) != SQLITE_DONE)
return 500;