Index: common/phones/nk6510.c =================================================================== RCS file: /sources/gnokii/gnokii/common/phones/nk6510.c,v retrieving revision 1.298 diff -u -p -r1.298 nk6510.c --- common/phones/nk6510.c 2 May 2009 15:03:25 -0000 1.298 +++ common/phones/nk6510.c 17 May 2009 21:57:56 -0000 @@ -2605,6 +2605,7 @@ static gn_error NK6510_IncomingFile(int } if (message[4] == 0x0e) { dprintf("Empty directory\n"); + error = GN_ERR_EMPTYLOCATION; goto out; } if (data->file) {