After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 661542 - Weird "Cannot upgrade from version 0.xxxx" on first use
Weird "Cannot upgrade from version 0.xxxx" on first use
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Shell
unspecified
Other All
: Normal normal
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2011-10-12 12:15 UTC by Vincent Untz
Modified: 2011-10-12 13:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Correctly initialize the variables when checking version update (1.19 KB, patch)
2011-10-12 12:15 UTC, Vincent Untz
none Details | Review

Description Vincent Untz 2011-10-12 12:15:16 UTC
Since there's now a default in the gconf schema for version (empty string, while there used to be not default), we need to correctly initialize the variables when checking version update.

Here's a simple patch.
Comment 1 Vincent Untz 2011-10-12 12:15:18 UTC
Created attachment 198843 [details] [review]
Correctly initialize the variables when checking version update

Else, we end up with non-initialized memory and "Cannot upgrade from
version <random data>".
Comment 2 Matthew Barnes 2011-10-12 13:37:21 UTC
Makes perfect sense.  Thanks for the patch!

Not sure if this is needed on the gnome-3-2 branch, but it can't hurt.

http://git.gnome.org/browse/evolution/commit/?id=c2288452b3a7181057935fdb9f28c191f7a78658

http://git.gnome.org/browse/evolution/commit/?h=gnome-3-2&id=e92b9ed8d85b555eaac65cb80eed8a7e0ddb5ddc