summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/eyefiservice.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eyefiservice.cc b/src/eyefiservice.cc
index 5c4e308..9ef4bb6 100644
--- a/src/eyefiservice.cc
+++ b/src/eyefiservice.cc
@@ -202,7 +202,7 @@ int eyefiService::UploadPhoto(
202 const char *fmt = i ? "%1$s/(%3$05d)%2$s" : "%1$s/%2$s"; 202 const char *fmt = i ? "%1$s/(%3$05d)%2$s" : "%1$s/%2$s";
203 ttf = (const char*)gnu::autosprintf(fmt,td.c_str(),tbn.c_str(),i); 203 ttf = (const char*)gnu::autosprintf(fmt,td.c_str(),tbn.c_str(),i);
204 if(!lf.empty()) tlf = (const char*)gnu::autosprintf(fmt,td.c_str(),lbn.c_str(),i); 204 if(!lf.empty()) tlf = (const char*)gnu::autosprintf(fmt,td.c_str(),lbn.c_str(),i);
205 if( (!link(tf.c_str(),ttf.c_str())) && (lf.empty()) || !link(lf.c_str(),tlf.c_str()) ) { 205 if( (!link(tf.c_str(),ttf.c_str())) && (lf.empty() || !link(lf.c_str(),tlf.c_str())) ) {
206 unlink(tf.c_str()); 206 unlink(tf.c_str());
207 if(!lf.empty()) unlink(lf.c_str()); 207 if(!lf.empty()) unlink(lf.c_str());
208 success=true; 208 success=true;