HuntnGather
/trunk/HuntnGather/Gather/Gather.c |
@@ -199,7 +199,8 @@ |
run = FALSE; |
} |
#endif |
if((path = stringStackPop(dirStack)) == NULL) { |
if((path = stringStackPop(dirStack)) == NULL || |
strlen(path) == 0) { |
return; |
} |
|
@@ -285,7 +286,6 @@ |
|
if((fp = fopen(dbFile, "r")) == NULL) { |
fprintf(stderr, "Unable to open gather database for reading.\n"); |
fclose(fp); |
return 0; |
} |
|
@@ -307,7 +307,6 @@ |
|
if((fp = fopen(dbFile, "r")) == NULL) { |
fprintf(stderr, "Unable to open gather database for reading.\n"); |
fclose(fp); |
return 0; |
} |
|
@@ -378,7 +377,6 @@ |
|
if((tp = fopen(tmpNames[--tmpFiles], "w+")) == NULL) { |
fprintf(stderr, "Unable to open temporary file '%s' for writing.\n", tmpNames[tmpFiles]); |
fclose(fp); |
return; |
} |
|
@@ -407,7 +405,6 @@ |
// Write the newline character back. |
if(fprintf(tp, "%c", c) != 1) { |
fprintf(stderr, "Unable to write to temporary file '%s'.\n", tmpNames[tmpFiles]); |
fclose(tp); |
fclose(fp); |
return; |
} |
@@ -422,7 +419,6 @@ |
fclose(tp); |
if((tp = fopen(tmpNames[--tmpFiles], "w+")) == NULL) { |
fprintf(stderr, "Unable to open temporary file '%s' for writing.\n", tmpNames[tmpFiles]); |
fclose(tp); |
fclose(fp); |
} |
lines = 0; |