fix a bug when freeing newpath - don't g_free(NULL)

svn path=/trunk/; revision=20432
This commit is contained in:
Ulf Lamping 2007-01-14 22:45:43 +00:00
parent 47aaf7d9b7
commit 7a9beb8945
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ static char *u3_change_path(char *path, const char *old, const char *new)
if(old == NULL)
old = u3devicepath;
if(newpath == NULL) {
if(newpath != NULL) {
g_free(newpath);
newpath = NULL;
}