git-svn: trunk@4251
Tomasz Kojm authored on 2008/10/11 21:50:56... | ... |
@@ -577,13 +577,13 @@ int submitstats(const char *clamdcfg, const struct cfgstruct *copt) |
577 | 577 |
pt2 += 2; |
578 | 578 |
|
579 | 579 |
#ifdef C_WINDOWS |
580 |
- if(!(pt = strrchr(pt, '\\'))) { |
|
580 |
+ if((pt = strrchr(pt, '\\'))) |
|
581 | 581 |
#else |
582 |
- if(!(pt = strrchr(pt, '/'))) { |
|
582 |
+ if((pt = strrchr(pt, '/'))) |
|
583 | 583 |
#endif |
584 |
- continue; |
|
585 |
- } |
|
586 |
- *pt++ = 0; |
|
584 |
+ *pt++ = 0; |
|
585 |
+ if(!pt) |
|
586 |
+ pt = "NOFNAME"; |
|
587 | 587 |
|
588 | 588 |
qcnt += snprintf(&query[qcnt], sizeof(query) - qcnt, "ts[]=%u&fname[]=%s&virus[]=%s&", (unsigned int) epoch, pt, pt2); |
589 | 589 |
entries++; |