Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove intermediate var

we don't do any error checking here anyways.
  • Loading branch information...
commit 6196ec289ae938e4406e4ac6384a6505e413fee1 1 parent c614206
@falconindy authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 cower.c
View
6 cower.c
@@ -2069,14 +2069,12 @@ void *task_query(CURL *curl, void *arg) /* {{{ */
if(pkglist && cfg.extinfo) {
struct aurpkg_t *aurpkg;
- char *pburl, *slash, *escaped, *pkgbuild;
+ char *pburl, *escaped, *pkgbuild;
aurpkg = pkglist->data;
escaped = url_escape(aurpkg->urlpath, 0, "/");
cwr_asprintf(&pburl, AUR_BASE_URL, cfg.proto, escaped);
- slash = strrchr(pburl, '/');
- memcpy(slash + 1, "PKGBUILD", 8);
- slash[9] = '\0';
+ memcpy(strrchr(pburl, '/') + 1, "PKGBUILD\0", 9);
pkgbuild = curl_get_url_as_buffer(curl, pburl);
free(escaped);
Please sign in to comment.
Something went wrong with that request. Please try again.