]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - userinfo.c
Remove trailing spaces in every source file
[thirdparty/sarg.git] / userinfo.c
index 8cdabc071976e20ab96c5c822ce35782f224af37..9117a23614e6ae4f5b257742514049f1f7e5de0e 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * SARG Squid Analysis Report Generator      http://sarg.sourceforge.net
- *                                                            1998, 2011
+ *                                                            1998, 2012
  *
  * SARG donations:
  *      please look at http://sarg.sourceforge.net/donations.php
@@ -107,6 +107,7 @@ struct userinfostruct *userinfo_create(const char *userid)
                                }
                        }
                }
+               if (j==0) user->filename[j++]='_'; //don't leave a file name empty
                user->filename[j]='\0';
                flen=i-1;