Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix asserts.
[simgrid.git] / src / xbt / xbt_log_appender_file.c
index e511603..f31c73b 100644 (file)
@@ -1,6 +1,6 @@
 /* file_appender - a dumb log appender which simply prints to a file        */
 
-/* Copyright (c) 2007-2017. The SimGrid Team.
+/* Copyright (c) 2007-2019. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -114,7 +114,7 @@ xbt_log_appender_t xbt_log_appender2_file_new(char *arg,int roll) {
   xbt_assert(arg);
   char* buf=xbt_strdup(arg);
   char* sep=strchr(buf,':');
-  xbt_assert(sep>0);
+  xbt_assert(sep != NULL);
   data->filename=xbt_strdup(sep+1);
   *sep='\0';
   char *endptr;