mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-11-04 09:13:05 +00:00 
			
		
		
		
	Make Coverity Scan happy
This commit is contained in:
		@@ -1458,7 +1458,6 @@ void decodeftppath(const char *path, char *addr, char *file, char *user,
 | 
				
			|||||||
    char *passwd, int *topts)
 | 
					    char *passwd, int *topts)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    char buff[MAXSTRPATH], *p, *q;
 | 
					    char buff[MAXSTRPATH], *p, *q;
 | 
				
			||||||
    q[0] = '\0';
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    tracet(4, "decodeftpath: path=%s\n", path);
 | 
					    tracet(4, "decodeftpath: path=%s\n", path);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1494,7 +1493,7 @@ void decodeftppath(const char *path, char *addr, char *file, char *user,
 | 
				
			|||||||
                    *q = '\0';
 | 
					                    *q = '\0';
 | 
				
			||||||
                    if (passwd) strcpy(passwd, q + 1);
 | 
					                    if (passwd) strcpy(passwd, q + 1);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            *q = '\0';
 | 
					            if (*q != 0) *q = '\0';
 | 
				
			||||||
            if (user) strcpy(user, buff);
 | 
					            if (user) strcpy(user, buff);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user