Killed some warnings. No please.. hold the applause.
authorChris Burt <desoto@exenex.com>
Thu, 28 Jul 2005 03:20:21 +0000 (03:20 +0000)
committerChris Burt <desoto@exenex.com>
Thu, 28 Jul 2005 03:20:21 +0000 (03:20 +0000)
source/blender/src/filesel.c

index 2cc264edfa14c2af1b2ed42d75079fb5dfb6a013..fc1bdfa14ed4a8abdc61963a2d4d0e2c94fbde75 100644 (file)
@@ -439,7 +439,7 @@ void checkdir(char *dir)
                return;
        }       
 
-       while (start = strstr(dir, "\\..\\")) {
+       while ( (start = strstr(dir, "\\..\\")) ) {
                eind = start + strlen("\\..\\") - 1;
                a = start-dir-1;
                while (a>0) {
@@ -449,17 +449,17 @@ void checkdir(char *dir)
                strcpy(dir+a,eind);
        }
 
-       while (start = strstr(dir,"\\.\\")){
+       while ( (start = strstr(dir,"\\.\\")) ){
                eind = start + strlen("\\.\\") - 1;
                strcpy(start,eind);
        }
 
-       while (start = strstr(dir,"\\\\" )){
+       while ( (start = strstr(dir,"\\\\" )) ){
                eind = start + strlen("\\\\") - 1;
                strcpy(start,eind);
        }
 
-       if(a = strlen(dir)){                            /* remove the '\\' at the end */
+       if((a = strlen(dir))){                          /* remove the '\\' at the end */
                while(a>0 && dir[a-1] == '\\'){
                        a--;
                        dir[a] = 0;
@@ -720,21 +720,21 @@ void parent(SpaceFile *sfile)
        dir= sfile->dir;
        
 #ifdef WIN32
-       if(a = strlen(dir)) {                           /* remove all '/' at the end */
+       if( (a = strlen(dir)) ) {                               /* remove all '/' at the end */
                while(dir[a-1] == '\\') {
                        a--;
                        dir[a] = 0;
                        if (a<=0) break;
                }
        }
-       if(a = strlen(dir)) {                           /* then remove all until '/' */
+       if( (a = strlen(dir)) ) {                               /* then remove all until '/' */
                while(dir[a-1] != '\\') {
                        a--;
                        dir[a] = 0;
                        if (a<=0) break;
                }
        }
-       if (a = strlen(dir)) {
+       if( (a = strlen(dir)) ) {
                if (dir[a-1] != '\\') strcat(dir,"\\");
        }
        else if(sfile->type!=FILE_MAIN) strcpy(dir,"\\");