mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
Merge branch 'master' of ssh://git.omp.am/home/omp/git/conky
This commit is contained in:
commit
f245aff685
@ -245,4 +245,4 @@ EXTRA_DIST = \
|
||||
imlib2.h
|
||||
|
||||
|
||||
# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
|
||||
# vi:set ts=4 sw=4 noet ai nocindent syntax=automake:
|
||||
|
@ -9283,7 +9283,7 @@ void initialisation(int argc, char **argv) {
|
||||
fprintf(stderr, PACKAGE_NAME": forked to background, pid is %d\n",
|
||||
pid);
|
||||
fflush(stderr);
|
||||
return;
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -144,7 +144,7 @@ PRSS *get_rss_info(char *uri, int delay)
|
||||
curl_easy_setopt(curl, CURLOPT_USERAGENT, "conky-rss/1.0");
|
||||
|
||||
res = curl_easy_perform(curl);
|
||||
if (chunk.size) {
|
||||
if (res == CURLE_OK && chunk.size) {
|
||||
curdata = prss_parse_data(chunk.memory);
|
||||
free(chunk.memory);
|
||||
} else {
|
||||
|
@ -552,7 +552,7 @@ void fetch_weather_info(location *curloc)
|
||||
curl_easy_setopt(curl, CURLOPT_USERAGENT, "conky-weather/1.0");
|
||||
|
||||
res = curl_easy_perform(curl);
|
||||
if (chunk.size) {
|
||||
if (res == CURLE_OK && chunk.size) {
|
||||
timed_thread_lock(curloc->p_timed_thread);
|
||||
parse_weather(&curloc->data, chunk.memory);
|
||||
timed_thread_unlock(curloc->p_timed_thread);
|
||||
|
Loading…
Reference in New Issue
Block a user