]> granicus.if.org Git - ejabberd/commitdiff
Fix bug when joining empty path
authorBadlop <badlop@process-one.net>
Wed, 14 May 2014 11:28:39 +0000 (13:28 +0200)
committerBadlop <badlop@process-one.net>
Wed, 14 May 2014 11:28:39 +0000 (13:28 +0200)
src/mod_muc_log.erl

index e8724483ea1584884ec36f3f0dc0a7e7a2d0571d..e7410ac287e383ebce627e0afd44f4b7fa8a68f0 100644 (file)
@@ -1240,5 +1240,6 @@ calc_hour_offset(TimeHere) ->
          3600,
     TimeHereHour - TimeZeroHour.
 
+fjoin([]) -> <<"/">>;
 fjoin(FileList) ->
     list_to_binary(filename:join([binary_to_list(File) || File <- FileList])).