Commit 32eba9f2 authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

Remove unnecessary av_strdup() and av_free().

Originally committed as revision 25169 to svn://
parent 07cac2a0
......@@ -217,11 +217,10 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
if (!frei0r->dl_handle && (path = av_strdup(getenv("HOME")))) {
if (!frei0r->dl_handle && (path = getenv("HOME"))) {
char prefix[1024];
snprintf(prefix, sizeof(prefix), "%s/.frei0r-1/lib/", path);
frei0r->dl_handle = load_path(ctx, prefix, dl_name);
if (!frei0r->dl_handle)
frei0r->dl_handle = load_path(ctx, "/usr/local/lib/frei0r-1/", dl_name);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment