Use g_strdup instead of strdup
authorKhaled Hosny <khaledhosny@eglug.org>
Fri, 19 Oct 2018 20:21:39 +0000 (22:21 +0200)
committerKhaled Hosny <khaledhosny@eglug.org>
Fri, 19 Oct 2018 20:46:40 +0000 (22:46 +0200)
Cygwin does not seem to have strdup.

util/options.hh

index 3749b99..dd62859 100644 (file)
@@ -586,7 +586,7 @@ struct output_options_t : option_group_t
       if (output_format)
       {
          output_format++; /* skip the dot */
-         output_format = strdup (output_format);
+         output_format = g_strdup (output_format);
       }
     }