Commit 8445c44a authored by Adrian Moran's avatar Adrian Moran

Fix unreachable statement.

Signed-off-by: 's avatarAdrian Moran <amoran@ikerlan.es>
parent d0a053d6
......@@ -3,11 +3,11 @@
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany this distribution.
* and Eclipse Distribution License v1.0 which accompany this distribution.
*
* The Eclipse Public License is available at
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
......@@ -271,7 +271,7 @@ int pstremove(void* handle, char* key)
FUNC_ENTRY;
if (clientDir == NULL)
{
return rc = MQTTCLIENT_PERSISTENCE_ERROR;
rc = MQTTCLIENT_PERSISTENCE_ERROR;
goto exit;
}
......@@ -690,7 +690,7 @@ int keysUnix(char *dirname, char ***keys, int *nkeys)
while((dir_entry = readdir(dp)) != NULL)
{
char* temp = malloc(strlen(dirname)+strlen(dir_entry->d_name)+2);
sprintf(temp, "%s/%s", dirname, dir_entry->d_name);
if (lstat(temp, &stat_info) == 0 && S_ISREG(stat_info.st_mode))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment