ALT Linux repositórios
S: | 0.58-alt29 |
5.0: | 0.57.2-alt2.5.M50.1 |
4.1: | 0.57.2-alt2.5.M41.1 |
4.0: | 0.57.2-alt2.5.M40.1 |
3.0: | 0.56-alt0.3 |
Group :: Sistema/Configurações/Pacotes
RPM: synaptic
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: synaptic-0.58-alt-fix-null-history.patch
Download
Download
diff --git a/synaptic/gtk/rglogview.cc b/synaptic/gtk/rglogview.cc
index 3821af7..2b536a7 100644
--- a/synaptic/gtk/rglogview.cc
+++ b/synaptic/gtk/rglogview.cc
@@ -51,8 +51,7 @@ void RGLogView::readLogs()
unsigned int year, month, day, hour, min, sec;
char str[128];
const gchar *logfile;
- const gchar *logdir = RLogDir().c_str();
- GDir *dir = g_dir_open(logdir, 0, NULL);
+ GDir *dir = g_dir_open(RLogDir().c_str(), 0, NULL);
while((logfile=g_dir_read_name(dir)) != NULL) {
if(sscanf(logfile, "%4u-%2u-%2u.%2u%2u%2u.log",
&year, &month, &day, &hour, &min, &sec) != 6)