mirror of
https://github.com/sist2app/sist2.git
synced 2026-03-24 09:31:36 +00:00
Fix #81
This commit is contained in:
@@ -135,6 +135,10 @@ int scan_args_validate(scan_args_t *args, int argc, const char **argv) {
|
|||||||
|
|
||||||
if (args->name == NULL) {
|
if (args->name == NULL) {
|
||||||
args->name = g_path_get_basename(args->output);
|
args->name = g_path_get_basename(args->output);
|
||||||
|
} else {
|
||||||
|
char* tmp = malloc(strlen(args->name) + 1);
|
||||||
|
strcpy(tmp, args->name);
|
||||||
|
args->name = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args->rewrite_url == NULL) {
|
if (args->rewrite_url == NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user