author | ecalot
<ecalot> 2006-01-07 20:53:37 UTC |
committer | ecalot
<ecalot> 2006-01-07 20:53:37 UTC |
parent | 698838e2db800fe1a156d39477e6c92468068e98 |
PR/src/lib/pr.c | +2 | -2 |
diff --git a/PR/src/lib/pr.c b/PR/src/lib/pr.c index 9f0d599..fcb2be7 100644 --- a/PR/src/lib/pr.c +++ b/PR/src/lib/pr.c @@ -133,7 +133,7 @@ int prExportDatOpt(const char* vDatFile, const char* vDirName, const char* vResF currentDatFile=strallocandcopy(vDatFile); - parseGivenPath(currentDatFile); + if (parseGivenPath(currentDatFile)) return PR_RESULT_ERR_COMMAND_LINE_SYNTAX; if (vDatFileName==NULL) { /* if no special dat file was specified, a path parsed will be used */ aux=getFileNameFromPath(currentDatFile); @@ -209,7 +209,7 @@ int prImportDatOpt(const char* vDatFile, const char* vDirName, const char* vResF currentDatFile=strallocandcopy(vDatFile); - parseGivenPath(currentDatFile); + if (parseGivenPath(currentDatFile)) return PR_RESULT_ERR_COMMAND_LINE_SYNTAX; if (vDatFileName==NULL) { /* if no special dat file was specified, a path parsed will be used */ aux=getFileNameFromPath(currentDatFile);