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

Commit

Permalink
Fixing issue when opening a file with no password.
Browse files Browse the repository at this point in the history
  • Loading branch information
davdiv committed Feb 28, 2017
1 parent 614ff36 commit 927c3c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DecryptSQLite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ static void start ()
if (!sourceFile.Equals (destinationFile)) {
File.Copy (sourceFile, destinationFile);
}
String connectionString = sourcePassword.Length > 0 ? String.Format (CONNECTION_STRING, destinationFile, sourcePassword) : CONNECTION_STRING_NO_PASSWORD;
String connectionString = sourcePassword.Length > 0 ?
String.Format (CONNECTION_STRING, destinationFile, sourcePassword) :
String.Format (CONNECTION_STRING_NO_PASSWORD, destinationFile);

try {
SQLiteConnection connection = new SQLiteConnection (connectionString);
Expand Down
Binary file modified bin/Release/DecryptSQLite.exe
Binary file not shown.

0 comments on commit 927c3c2

Please sign in to comment.