mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
cli: remove useless talloc_strdup
If the condition holds, query_string_from_args() has already returned a talloc allocated empty string. There's no need to duplicate that.
This commit is contained in:
parent
abd4d6b92e
commit
ab65c365d5
1 changed files with 0 additions and 4 deletions
|
@ -71,10 +71,6 @@ notmuch_count_command (notmuch_config_t *config, int argc, char *argv[])
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (*query_str == '\0') {
|
||||
query_str = talloc_strdup (config, "");
|
||||
}
|
||||
|
||||
query = notmuch_query_create (notmuch, query_str);
|
||||
if (query == NULL) {
|
||||
fprintf (stderr, "Out of memory\n");
|
||||
|
|
Loading…
Reference in a new issue