Skip to content

Commit 1723477

Browse files
committed
empty if statement.
1 parent 62ccbf8 commit 1723477

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/fs_handles_db.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,11 @@ char * build_full_path(fs_handles_db * db,char * root_path,fs_entry * entry)
620620
memcpy(&full_path[0],root_path,strlen(root_path));
621621
}
622622

623+
#ifdef DEBUG
623624
if(entry->name)
624625
PRINT_DEBUG("build_full_path : %s -> %s",entry->name, full_path);
626+
#endif
627+
625628
}
626629

627630
return full_path;
@@ -644,8 +647,10 @@ int entry_open(fs_handles_db * db, fs_entry * entry, int flags, mode_t mode)
644647

645648
restore_giduid(db->mtp_ctx);
646649

650+
#ifdef DEBUG
647651
if( entry->file_descriptor == -1 )
648652
PRINT_DEBUG("entry_open : Can't open %s !",full_path);
653+
#endif
649654

650655
free(full_path);
651656
}

src/inotify.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ static void* inotify_thread(void* arg)
132132

133133
if ( length >= 0 )
134134
{
135+
#ifdef DEBUG
135136
if(!length)
136137
PRINT_DEBUG( "inotify_thread : Null sized packet ?");
138+
#endif
137139

138140
i = 0;
139141
while ( i < length && i < INOTIFY_RD_BUF_SIZE )

0 commit comments

Comments
 (0)